joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000eb96
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x1001300c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1000c72c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x1000c72c
call fcn.1000ab50
mov esi, eax
jmp 0x1000c81c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1000c74f
call fcn.1000ab50
jmp 0x1000c80f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x1000c76d
call fcn.1000ab50
jmp 0x1000c80f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1000c78e
mov esi, 0x8007000e
jmp 0x1000c811
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1000ab00
jmp 0x1000c7b8
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x1000c7cf
mov esi, 0x8007000e
jmp 0x1000c811
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1000c7ef
call fcn.1000ab50
jmp 0x1000c80f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.1000c520
mov esi, eax
test edi, edi
je 0x1000c81c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000c840
lea ecx, [ebp - 0x418]
call fcn.1000aab0
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000cc66
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401207
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x4182d8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4182dc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x10], edx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], 0x9e3779b9
mov dword [ebp - 0x34], eax
call fcn.00401200
add dword [ebp - 0x10], 0x23f
cmp dword [0xb03e24], 0x14
jne 0x401263
push edx
lea eax, [ebp - 0x834]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov eax, dword [0x4182e4]
mov edi, dword [0x4182e0]
push 0x20
pop edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov eax, esi
mov dword [ebp - 0xc], 0xedeb2e40
shl eax, 4
add eax, edi
cmp dword [0xb03e24], 0xfa9
mov dword [ebp - 8], eax
mov eax, dword [0xb03e20]
cmove eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
cmp dword [0xb03e24], 0x3eb
mov dword [0xb03e20], eax
mov eax, dword [0xb03d78]
cmove eax, dword [ebp - 0xc]
mov dword [0xb03d78], eax
mov eax, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
shr eax, 5
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
and dword [ebp - 0x14], 0
mov dword [0xb03e1c], 0xf4ea3dee
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 4]
sub ebx, eax
mov dword [ebp - 0x18], eax
mov eax, ebx
shl eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
add eax, ebx
and dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor dword [ebp - 0x14], eax
cmp dword [0xb03e24], 0xb03
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
jne 0x401362
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x28]
sub dword [ebp - 0x10], eax
dec edx
mov dword [ebp - 0x20], edx
jne 0x401277
mov edi, dword [ebp - 0x30]
mov dword [edi], esi
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c062
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417f10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407f6c
mov dword [ebp - 0x14], eax
cmp dword [0x45f614], esi
jne 0x40c155
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c0e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c235
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c235
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c235
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x45f614], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x45f618], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x45f61c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45f624], eax
test eax, eax
je 0x40c152
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45f620], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c17a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c16d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c18f
push 4
pop eax
jmp 0x40c237
cmp dword [ebp - 0x14], esi
je 0x40c18f
push dword [0x45f614]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c174
mov eax, dword [0x45f620]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c1ed
cmp dword [0x45f624], edi
je 0x40c1ed
push eax
call ebx
push dword [0x45f624]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c1ed
test eax, eax
je 0x40c1ed
call ecx
test eax, eax
je 0x40c1e2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c1e2
test byte [ebp - 8], 1
jne 0x40c1ed
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c21d
mov eax, dword [0x45f618]
cmp eax, edi
je 0x40c21a
push eax
call ebx
test eax, eax
je 0x40c21a
call eax
mov esi, eax
test esi, esi
je 0x40c21a
mov eax, dword [0x45f61c]
cmp eax, edi
je 0x40c21a
push eax
call ebx
test eax, eax
je 0x40c21a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x45f614]
call ebx
test eax, eax
je 0x40c235
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c237
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040a8
mov esp, ebp
pop ebp
ret
Function at 0x1321754
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, 0x5a4d
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
cmp word [esi], ax
jne 0x13218b7
mov ebx, dword [esi + 0x3c]
add ebx, esi
cmp dword [ebx], 0x4550
jne 0x13218b7
mov eax, dword [edi + 0x688]
test eax, eax
je 0x13218b7
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0xffffffffffffffff
call eax
test eax, eax
je 0x13218b7
mov eax, 0x1c0
cmp word [ebp - 4], ax
je 0x13217bc
mov eax, 0xaa64
cmp word [ebp - 4], ax
jne 0x13218b7
cmp dword [ebx + 8], 0x27debf2c
jne 0x13217e7
push 0x4b2e8f83
push 0x4b2e8de3
push 0x4b280000
mov edx, esi
mov ecx, edi
call fcn.013216ce
add esp, 0xc
xor eax, eax
jmp 0x13218bc
cmp dword [ebx + 8], 0x88330560
jne 0x13217fc
push 0x4b3fabde
push 0x4b3fa92b
jmp 0x13217cf
cmp dword [ebx + 8], 0xe892dd44
jne 0x1321811
push 0x4b406b8e
push 0x4b4068db
jmp 0x13217cf
and dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push 0
push 1
push ecx
push 0x2bcd03a7
push esi
mov ecx, edi
call fcn.01321dc7
test eax, eax
js 0x13218bc
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x13218b7
lea eax, [ebx - 0x140]
mov dword [ebp - 0x1c], 0x3f3f3fe8
push 8
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x18], 0x843f
push ecx
mov edx, 0x140
mov byte [ebp - 0x16], 0xc0
mov ecx, eax
mov dword [ebp - 0x24], 0x1b8
mov word [ebp - 0x20], 0x8400
mov byte [ebp - 0x1e], 0xc0
mov dword [ebp - 0x10], eax
call fcn.0132232b
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1321887
mov ecx, dword [ebp - 0x10]
mov edx, 0x140
jmp 0x13218a4
push 7
lea eax, [ebp - 0x1c]
mov edx, 0x200
push eax
mov ecx, ebx
call fcn.0132232b
test eax, eax
jne 0x13218c1
mov edx, 0x200
mov ecx, ebx
push 8
lea eax, [ebp - 0x24]
push eax
call fcn.0132232b
test eax, eax
jne 0x13217e0
mov eax, 0xe0010001
pop edi
pop esi
pop ebx
leave
ret
push eax
push dword [ebp - 0x14]
push esi
jmp 0x13217d4

Function at 0x13221b3
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x13221d1
mov eax, dword [ecx + 0x3c]
cmp eax, 0x400
jg 0x13221d1
add eax, ecx
cmp dword [eax], 0x4550
je 0x13221d3
xor eax, eax
ret
Function at 0x1325584
Capabilities:
Encode data using xor
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov edx, 1
push ebx
push esi
push edi
xor esi, esi
mov eax, edx
mov dword [ebp + esi*4 - 0x808], edx
and al, 0x80
mov dword [ebp + edx*4 - 0x408], esi
movzx ecx, al
lea eax, [edx + edx]
neg ecx
sbb ecx, ecx
inc esi
and ecx, 0x1b
xor ecx, eax
xor ecx, edx
movzx edx, cl
cmp esi, 0x100
jl 0x1325597
mov esi, 1
mov edx, 0x132c264
nop dword [eax]
mov eax, esi
mov dword [edx], esi
and al, 0x80
movzx ecx, al
lea eax, [esi + esi]
neg ecx
sbb ecx, ecx
add edx, 4
and ecx, 0x1b
xor ecx, eax
movzx esi, cl
cmp edx, 0x132c28c
jl 0x13255d4
mov eax, 1
mov byte [0x132a064], 0x63
mov byte [0x132b1c7], 0
mov dword [ebp - 4], eax
nop dword [eax]
mov ecx, dword [ebp + eax*4 - 0x408]
lea eax, [ebp - 0x40c]
shl ecx, 2
sub eax, ecx
mov ebx, dword [eax]
mov ecx, ebx
sar ecx, 7
lea eax, [ebx + ebx]
or ecx, eax
movzx eax, cl
xor ebx, eax
mov ecx, eax
shr ecx, 7
add eax, eax
or ecx, eax
movzx eax, cl
xor ebx, eax
mov ecx, eax
add eax, eax
shr ecx, 7
or ecx, eax
movzx edx, cl
mov ecx, edx
shr ecx, 7
lea eax, [edx + edx]
or ecx, eax
xor ecx, 0x63
movzx eax, cl
xor eax, edx
xor ebx, eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x132a064], bl
mov byte [ebx + 0x132b164], al
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x100
jl 0x1325614
mov ebx, 0xff
xor esi, esi
mov dword [ebp - 8], ebx
movzx edx, byte [esi + 0x132a064]
mov eax, edx
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx eax, cl
mov ecx, eax
xor ecx, edx
shl ecx, 8
xor ecx, edx
shl ecx, 8
xor ecx, edx
shl ecx, 8
xor ecx, eax
mov dword [esi*4 + 0x132a164], ecx
rol ecx, 8
mov dword [esi*4 + 0x132a564], ecx
rol ecx, 8
mov dword [esi*4 + 0x132a964], ecx
rol ecx, 8
mov dword [esi*4 + 0x132ad64], ecx
movzx ecx, byte [esi + 0x132b164]
test ecx, ecx
je 0x1325743
mov ecx, dword [ebp + ecx*4 - 0x408]
mov eax, dword [ebp - 0x3d0]
add eax, ecx
cdq
idiv ebx
mov eax, dword [ebp - 0x3e4]
add eax, ecx
mov edi, dword [ebp + edx*4 - 0x808]
cdq
idiv ebx
mov eax, dword [ebp - 0x3d4]
add eax, ecx
mov ebx, dword [ebp + edx*4 - 0x808]
cdq
idiv dword [ebp - 8]
mov eax, dword [ebp + edx*4 - 0x808]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x3dc]
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov eax, dword [ebp + edx*4 - 0x808]
jmp 0x132574c
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ebx
xor eax, eax
shl eax, 8
xor eax, dword [ebp - 4]
shl eax, 8
xor eax, ebx
mov ebx, 0xff
shl eax, 8
xor eax, edi
mov dword [esi*4 + 0x132b264], eax
rol eax, 8
mov dword [esi*4 + 0x132b664], eax
rol eax, 8
mov dword [esi*4 + 0x132ba64], eax
rol eax, 8
mov dword [esi*4 + 0x132be64], eax
inc esi
cmp esi, 0x100
jl 0x1325689
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x13257a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x18
test al, 0xf
je 0x13257ba
mov eax, 0xffffffde
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x132590e
cmp dword [ebp + 0xc], 0
mov ecx, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
jne 0x1325856
mov ebx, dword [ebp + 0x18]
lea edx, [ecx + 0xf]
dec eax
mov dword [ebp - 8], edx
mov edi, ecx
shr eax, 4
sub edi, esi
inc eax
mov dword [ebp + 0x10], eax
movups xmm0, xmmword [ebx]
push esi
push ebx
push dword [ebp + 8]
movups xmmword [ebp - 0x18], xmm0
call fcn.01326ad4
add esp, 0xc
cmp esi, dword [ebp - 8]
ja 0x1325827
lea eax, [esi + 0xf]
cmp eax, dword [ebp + 0x14]
jb 0x1325827
mov ecx, esi
mov edx, 0x10
nop
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edx, 1
jne 0x1325814
mov eax, dword [ebp + 0x14]
jmp 0x1325837
mov eax, dword [ebp + 0x14]
movups xmm0, xmmword [esi]
movups xmm1, xmmword [eax]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
movups xmm0, xmmword [ebp - 0x18]
add esi, 0x10
add ebx, 0x10
sub edi, 0x10
sub dword [ebp + 0x10], 1
movups xmmword [eax], xmm0
jne 0x13257ea
pop edi
pop esi
pop ebx
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x18]
lea edx, [eax - 1]
mov ebx, ecx
shr edx, 4
sub ebx, edi
mov dword [ebp - 4], esi
inc edx
mov dword [ebp + 0x10], ebx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
nop dword [eax]
lea eax, [edi + 0xf]
cmp esi, eax
ja 0x1325882
lea eax, [esi + 0xf]
cmp eax, edi
jae 0x1325890
lea eax, [ecx + 0xf]
cmp esi, eax
ja 0x13258c1
lea eax, [esi + 0xf]
cmp eax, ecx
jb 0x13258c1
mov ebx, esi
mov ecx, edi
mov esi, dword [ebp + 0x10]
sub ebx, edi
mov edx, 0x10
nop word [eax + eax]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub edx, 1
jne 0x13258a4
mov esi, dword [ebp - 4]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
jmp 0x13258ce
movups xmm1, xmmword [ecx]
movups xmm0, xmmword [edi]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
cmp dword [ebp + 0xc], 1
push esi
push esi
push edx
jne 0x13258de
call fcn.01327064
jmp 0x13258e3
call fcn.01326ad4
movups xmm0, xmmword [esi]
mov ecx, dword [ebp + 0x14]
sub ebx, 0x10
mov edx, dword [ebp + 8]
add esi, 0x10
add esp, 0xc
mov dword [ebp + 0x10], ebx
add edi, 0x10
mov dword [ebp - 4], esi
sub dword [ebp - 8], 1
movups xmmword [ecx], xmm0
jne 0x1325874
pop edi
pop esi
pop ebx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1325954
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push esi
push edi
push dword [ebp + 0x10]
xor eax, eax
lea edi, [ebp - 0x118]
push dword [ebp + 0xc]
mov ecx, 0x46
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
lea esi, [edi + 8]
mov dword [edi + 4], esi
call fcn.01325b54
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
jne 0x1325b48
mov ecx, dword [ebp - 0x118]
mov dword [edi], ecx
shl ecx, 4
add ecx, dword [ebp - 0x114]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
sub ecx, 0x10
mov dword [esi + 0xc], eax
add esi, 0x10
mov edi, dword [edi]
dec edi
test edi, edi
jle 0x1325b2f
push ebx
nop dword [eax]
movzx eax, byte [ecx + 3]
dec edi
movzx edx, byte [eax + 0x132a064]
movzx eax, byte [ecx + 2]
mov edx, dword [edx*4 + 0x132be64]
movzx eax, byte [eax + 0x132a064]
xor edx, dword [eax*4 + 0x132ba64]
movzx eax, byte [ecx + 1]
movzx eax, byte [eax + 0x132a064]
xor edx, dword [eax*4 + 0x132b664]
movzx eax, byte [ecx]
movzx eax, byte [eax + 0x132a064]
xor edx, dword [eax*4 + 0x132b264]
mov dword [esi], edx
mov ebx, dword [ecx + 4]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x132a064]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x132ba64]
movzx eax, byte [eax + 0x132a064]
xor edx, dword [eax*4 + 0x132b664]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x132a064]
xor edx, dword [eax*4 + 0x132be64]
movzx eax, bl
movzx eax, byte [eax + 0x132a064]
xor edx, dword [eax*4 + 0x132b264]
mov dword [esi + 4], edx
mov ebx, dword [ecx + 8]
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + 0x132a064]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x132ba64]
movzx eax, byte [eax + 0x132a064]
xor edx, dword [eax*4 + 0x132b664]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x132a064]
xor edx, dword [eax*4 + 0x132be64]
movzx eax, bl
movzx eax, byte [eax + 0x132a064]
xor edx, dword [eax*4 + 0x132b264]
mov dword [esi + 8], edx
mov ebx, dword [ecx + 0xc]
mov eax, ebx
shr eax, 0x10
sub ecx, 0x10
movzx eax, al
movzx edx, byte [eax + 0x132a064]
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [edx*4 + 0x132ba64]
movzx eax, byte [eax + 0x132a064]
xor edx, dword [eax*4 + 0x132b664]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + 0x132a064]
xor edx, dword [eax*4 + 0x132be64]
movzx eax, bl
movzx eax, byte [eax + 0x132a064]
xor edx, dword [eax*4 + 0x132b264]
mov dword [esi + 0xc], edx
add esi, 0x10
test edi, edi
jg 0x13259d4
pop ebx
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1327c34
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x20]
mov word [edi], cx
test eax, eax
je 0x1327e1f
push ebx
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x1327e1e
nop dword [eax]
mov dword [ebp - 0x1c], 0x49cb
mov eax, dword [ebp - 0x1c]
xor eax, 0x25
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x1c]
inc eax
xor eax, 0x30
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x1c]
add eax, 2
xor eax, 0x32
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x1c]
add eax, 3
xor eax, 0x58
mov word [ebp - 0x12], ax
xor eax, eax
mov word [ebp - 0x10], ax
xor edx, edx
mov ax, word [ebp - 0x18]
mov ax, word [ebp + edx*2 - 0x18]
mov ecx, dword [ebp - 0x1c]
add ecx, edx
movzx eax, ax
xor ecx, eax
mov word [ebp + edx*2 - 0x18], cx
inc edx
cmp edx, 4
jb 0x1327ca6
xor eax, eax
mov word [ebp - 0x10], ax
movsx eax, byte [esi + ebx + 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [esi + 0x754]
call eax
add esp, 0xc
cmp word [edi], 0
jne 0x1327d3f
mov dword [ebp - 0xc], 0x298
mov eax, dword [ebp - 0xc]
xor eax, 0x25
mov word [ebp - 8], ax
mov eax, dword [ebp - 0xc]
inc eax
xor eax, 0x6c
mov word [ebp - 6], ax
mov eax, dword [ebp - 0xc]
add eax, 2
xor eax, 0x73
mov word [ebp - 4], ax
xor eax, eax
mov word [ebp - 2], ax
mov ax, word [ebp - 8]
xor eax, eax
mov cx, word [ebp + eax*2 - 8]
mov edx, dword [ebp - 0xc]
add edx, eax
movzx ecx, cx
xor edx, ecx
mov word [ebp + eax*2 - 8], dx
inc eax
cmp eax, 3
jb 0x1327d1a
xor eax, eax
mov word [ebp - 2], ax
lea eax, [ebp - 8]
jmp 0x1327d98
mov dword [ebp - 0x3c], 0x412c
mov eax, 0x4109
mov word [ebp - 0x38], ax
mov eax, 0x4140
mov word [ebp - 0x36], ax
mov eax, 0x415f
mov word [ebp - 0x34], ax
mov eax, 0x4101
mov word [ebp - 0x32], ax
xor eax, eax
mov word [ebp - 0x30], ax
xor edx, edx
mov ax, word [ebp - 0x38]
mov ax, word [ebp + edx*2 - 0x38]
movzx ecx, ax
movzx eax, word [ebp - 0x3c]
xor ecx, eax
mov word [ebp + edx*2 - 0x38], cx
inc edx
cmp edx, 4
jb 0x1327d76
xor eax, eax
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x38]
push edi
push eax
lea eax, [ebp - 0x450]
push eax
mov eax, dword [esi + 0x754]
call eax
mov eax, 0x2a
mov ecx, 0x71
mov word [ebp - 0x2a], ax
mov edx, 0x78
mov word [ebp - 0x28], cx
add esp, 0xc
mov word [ebp - 0x26], dx
mov word [ebp - 0x24], ax
xor eax, eax
mov word [ebp - 0x22], cx
xor ecx, ecx
mov word [ebp - 0x20], dx
mov word [ebp - 0x1e], ax
mov ax, word [ebp - 0x2a]
nop dword [eax + eax]
mov ax, word [ebp + ecx*2 - 0x2a]
movzx eax, ax
add eax, 0xfffffffb
mov word [ebp + ecx*2 - 0x2a], ax
inc ecx
cmp ecx, 6
jb 0x1327de4
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x2a]
push eax
mov eax, dword [esi + 0x754]
push edi
call eax
add esp, 0x10
sub ebx, 1
jne 0x1327c64
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4014c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.WS2_32.dll_socket]
push 6
push 1
push 2
call edi
mov ebx, dword [sym.imp.WS2_32.dll_htons]
mov esi, eax
mov eax, 2
push 0x1388
mov word [ebp - 0x14], ax
call ebx
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
push str.192.168.3.2
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
mov ecx, 0x64
call fcn.00401280
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40158c
nop dword [eax]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 6
push 1
push 2
call edi
mov esi, eax
mov eax, 2
push 0x1388
mov word [ebp - 0x14], ax
call ebx
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
push str.192.168.3.2
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
mov ecx, 0x64
call fcn.00401280
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x401530
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401a6c
mov esp, ebp
pop ebp
ret
Function at 0x402314
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402353
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402353
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402353
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402353
cmp dword [ecx + 0x74], 0xe
jbe 0x402353
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret