joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cc30
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x465040]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x91]
mov edi, dword [esi + 0x228]
mov dword [esp + 0x14], edx
bswap edi
cmp edx, 0x17
jne 0x40cc6f
movzx ecx, word [esi + 0x236]
jmp 0x40cc76
movzx ecx, word [esi + 0x226]
mov ebx, dword [ebp + 8]
mov ah, cl
mov al, ch
movzx eax, ax
mov dword [esp + 0x10], eax
cmp ebx, 0x64
jne 0x40cd12
mov eax, dword [esi]
mov ecx, esi
push 0
push 0x800
call dword [eax + 8]
push 1
mov ecx, esi
call fcn.0040b790
cmp dword [esp + 0x14], 0x17
mov ebx, dword [esi]
push ecx
lea ecx, [esp + 0x24]
jne 0x40cce5
lea edi, [esi + 0x23c]
mov edx, edi
call fcn.0040b350
add esp, 4
mov ecx, esi
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0043306f
mov esp, ebp
pop ebp
ret 4
mov edx, edi
call fcn.0040b5b0
add esp, 4
mov ecx, esi
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
call dword [ebx + 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0043306f
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x8d]
cmp edx, 0x17
jne 0x40cd27
push 0x1c
lea eax, [esi + 0x234]
jmp 0x40cd2f
push 0x10
lea eax, [esi + 0x224]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40cd97
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x40cd74
sub eax, 2
je 0x40cd74
sub eax, 0x13
jne 0x40cdb8
test ebx, ebx
jne 0x40cc8d
lea eax, [ebx + 3]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0043306f
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov eax, 2
test ebx, ebx
cmovne eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0043306f
mov esp, ebp
pop ebp
ret 4
test ebx, ebx
jne 0x40cc8d
mov ecx, dword [esp + 0x224]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043306f
mov esp, ebp
pop ebp
ret 4
push 0
push 0xffffffffffffffff
push 0
push 0
push str.error
lea ecx, [esp + 0x2c]
call fcn.00418260
lea ecx, [esp + 0x18]
call fcn.00401d30
cmp dword [esp + 0x14], 0x17
mov eax, dword [esp + 0x10]
push ecx
movzx ebx, ax
lea ecx, [esp + 0x24]
jne 0x40cdf7
lea edx, [esi + 0x23c]
call fcn.0040b350
jmp 0x40cdfe
mov edx, edi
call fcn.0040b5b0
add esp, 4
push ebx
push eax
lea eax, [esp + 0x128]
push str.connect___s___d_
push eax
call fcn.00417330
add esp, 0x10
lea eax, [esp + 0x120]
mov ecx, esi
push eax
call fcn.0040bd30
int3
Function at 0x40ce30
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2a4
mov eax, dword [0x465040]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x91], 0x17
je 0x40cf41
mov ax, word [ebp + 0xc]
mov ecx, 2
mov dword [esi + 0x22c], 0
mov dword [esi + 0x230], 0
mov word [esi + 0x224], cx
mov ch, al
mov cl, ah
mov eax, ebx
bswap eax
mov dword [esi + 0x228], eax
mov eax, dword [esi]
push 0
mov word [esi + 0x226], cx
mov ecx, esi
push 8
call dword [eax + 8]
mov eax, dword [esi + 0x228]
mov ecx, dword [esi + 0x91]
mov dword [esp + 0x10], ecx
bswap eax
mov dword [esp + 0x14], eax
cmp ecx, 0x17
jne 0x40ced3
mov ax, word [esi + 0x236]
mov ch, al
mov cl, ah
lea eax, [esi + 0x234]
push 0x1c
jmp 0x40cee6
mov ax, word [esi + 0x226]
mov ch, al
mov cl, ah
lea eax, [esi + 0x224]
push 0x10
push eax
push dword [esi + 0x8d]
movzx edi, cx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40cf1f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x40cf18
sub eax, 2
je 0x40cf18
sub eax, 0x13
jne 0x40cf4b
mov eax, 3
jmp 0x40cf21
mov eax, 2
jmp 0x40cf21
xor eax, eax
cmp eax, 3
jae 0x40cfbb
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043306f
mov esp, ebp
pop ebp
ret 8
push str.Connect___on_IPv6_socket_called
call fcn.0040bd30
push 0
push 0xffffffffffffffff
push 0
push 0
push str.error
lea ecx, [esp + 0x2c]
call fcn.00418260
lea ecx, [esp + 0x18]
call fcn.00401d30
cmp dword [esp + 0x10], 0x17
push ecx
movzx edi, di
lea ecx, [esp + 0xac]
jne 0x40cf89
lea edx, [esi + 0x23c]
call fcn.0040b350
jmp 0x40cf92
mov edx, dword [esp + 0x18]
call fcn.0040b5b0
add esp, 4
push edi
push eax
lea eax, [esp + 0x1b0]
push str.connect___s___d_
push eax
call fcn.00417330
add esp, 0x10
lea eax, [esp + 0x1a8]
mov ecx, esi
push eax
call fcn.0040bd30
movzx eax, word [ebp + 0xc]
mov edx, ebx
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.0040b5b0
add esp, 4
push eax
lea eax, [esp + 0x48]
push str.connect___s___d_
push eax
call fcn.00417330
add esp, 0x10
lea eax, [esp + 0x40]
mov ecx, esi
push eax
call fcn.0040bd30
int3
Function at 0x40cff0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x91], 0x17
je 0x40d096
mov eax, 2
mov dword [esi + 0x228], 0
mov word [esi + 0x224], ax
lea edi, [esi + 0x224]
mov ax, word [esp + 0x14]
mov ch, al
mov dword [esp + 0x14], 1
push 4
mov cl, ah
lea eax, [esp + 0x18]
push eax
push 4
push 0xffff
push dword [esi + 0x8d]
mov word [esi + 0x226], cx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
push edi
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40d0a0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x10
push eax
push edi
push dword [esi + 0x8d]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x40d0ac
pop edi
mov dword [esi + 0x89], 1
pop esi
add esp, 8
ret 0xc
push str.Bind___on_IPv6_socket_called
call fcn.0040bd30
push str.bind___
mov ecx, esi
call fcn.0040bd30
push str.getsockname__
mov ecx, esi
call fcn.0040bd30
int3
Function at 0x40e750
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44f140
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x465040]
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 edi, ecx
mov dword [ebp - 0x38], edi
mov eax, dword [edi + 0x91]
xor esi, esi
mov dword [ebp - 0x3c], eax
cmp eax, 0x17
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 4], esi
push eax
jne 0x40e7c8
lea eax, [ebp - 0x24]
push eax
call fcn.0040d310
jmp 0x40e7d1
lea eax, [ebp - 0x40]
push eax
call fcn.0040d220
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0xae]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x40e7ff
mov ecx, dword [ebp - 0x38]
push dword [edi + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x58]
call eax
mov esi, eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x40e825
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
test edi, edi
je 0x40e8eb
mov eax, dword [edi]
mov ecx, edi
jmp 0x40e8e7
push ecx
mov ecx, dword [esi + 4]
push esi
call fcn.0040d630
mov eax, dword [esi]
mov ecx, esi
push 0
push 0x1f00
call dword [eax + 8]
mov eax, dword [esi + 0x8d]
cmp eax, 0xffffffff
je 0x40e84f
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x8d], eax
mov eax, dword [ebp - 0x3c]
cmp eax, 0xffffffff
je 0x40e866
mov dword [esi + 0x91], eax
mov ecx, esi
mov dword [esi + 0x7d], 0xffffffff
call fcn.0040be30
push 1
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.0040b790
cmp dword [ebp - 0x3c], 0x17
mov eax, dword [esi]
push dword [ebp - 0x28]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x38], ecx
jne 0x40e89e
mov eax, dword [eax + 0x2c]
lea ecx, [ebp - 0x24]
push ecx
jmp 0x40e8a4
mov eax, dword [eax + 0x24]
push dword [ebp - 0x40]
mov ecx, esi
call eax
push 0
push eax
mov ecx, esi
call dword [ebp - 0x38]
lea eax, [edi + 0x10]
push eax
push 0
push edi
push 0x41b5c0
push 0
push 0
call fcn.0043eccf
add esp, 0x18
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
je 0x40e92e
jmp 0x40e8eb
push 1
call dword [eax]
xor eax, eax
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.0043306f
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov ecx, str.Cant_create_thread
mov dword [ebp - 0x2c], 0
call fcn.0040bd90
int3
Function at 0x40fe10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x29]
test eax, eax
je 0x40fecd
cmp dword [eax + 4], 0
je 0x40fe37
test byte [eax + 8], 0x10
jne 0x40fed2
push 2
push 1
lea ecx, [esp + 0x17]
mov byte [esp + 0x17], 0
push ecx
push dword [eax + 0x8d]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jns 0x40fe61
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x40fe63
xor ebx, ebx
mov ecx, esi
call fcn.0040f190
cmp eax, 2
jne 0x40fe81
test edx, edx
jne 0x40fe81
push edx
push edx
push 0x7d0
mov ecx, esi
call fcn.0040f210
test edi, edi
je 0x40feaa
jns 0x40feaa
cmp ebx, 0x2733
je 0x40fed2
mov byte [esi + 0xc], 0
mov esi, dword [esi + 0x29]
mov ecx, esi
mov edi, dword [esi]
call dword [edi + 0x1c]
push eax
mov ecx, esi
call dword [edi + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0x29]
cmp dword [edi + 4], 0
je 0x40fed2
test byte [edi + 8], 1
je 0x40fed2
mov esi, dword [edi]
mov ecx, edi
call dword [esi + 0x14]
push eax
mov ecx, edi
call dword [esi + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040f520
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418cf0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fa8d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x465040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov edx, ecx
lea ecx, [ebp - 0x10]
call fcn.00423ac0
add esp, 4
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x418d2f
mov eax, dword [esi + 0xc]
jmp 0x418d34
mov eax, 0x45b258
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
test esi, esi
je 0x418d53
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
jne 0x418d53
push ecx
mov ecx, esi
call fcn.0041c140
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x419ec0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fa5d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x465040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 9], 0
je 0x419f51
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x419f0a
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
je 0x419f0a
mov ecx, dword [edi + 4]
mov dword [edi + 4], eax
mov eax, dword [ecx]
call dword [eax + 4]
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [ebp + 0xc]
mov eax, dword [edi + 9]
push dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x419f3b
push 0xffffffffffffffff
push str.ReadFile__
mov ecx, edi
call fcn.00418ad0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x10
call fcn.00433090
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [esi + 4], 1
mov dword [esi + 8], 0
mov dword [esi], vtable.XTOOGetLastErrorImp.0
mov dword [esi + 0xc], 0
call fcn.00418380
push 0x20
push str.Bad_implementation
mov ecx, esi
call fcn.00417660
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], vtable.XTOOLastError.0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00417470
cmp byte [edi + 8], 0
jne 0x419fd0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x419fbb
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00418bc0
push 0x4638b4
lea eax, [ebp - 0x1c]
push eax
call fcn.004349e6
int3
Function at 0x419ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fa5d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x465040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 9], 0
je 0x41a091
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41a0fb
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x41a045
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
je 0x41a045
mov ecx, dword [edi + 4]
mov dword [edi + 4], eax
mov eax, dword [ecx]
call dword [eax + 4]
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
mov eax, dword [edi + 9]
push esi
push dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x41a0fd
push 0xffffffffffffffff
push str.WriteFile__
mov ecx, edi
call fcn.00418ad0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x10
call fcn.00433090
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [esi + 4], 1
mov dword [esi + 8], 0
mov dword [esi], vtable.XTOOGetLastErrorImp.0
mov dword [esi + 0xc], 0
call fcn.00418380
push 0x20
push str.Bad_implementation
mov ecx, esi
call fcn.00417660
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], vtable.XTOOLastError.0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00417470
cmp byte [edi + 8], 0
jne 0x41a110
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x41a0fb
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00418bc0
push 0x4638b4
lea eax, [ebp - 0x1c]
push eax
call fcn.004349e6
int3
Function at 0x41a3f0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fa5d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x465040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 9], 0
je 0x41a47e
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x41a43a
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
je 0x41a43a
mov ecx, dword [edi + 4]
mov dword [edi + 4], eax
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 9]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x41a45d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push str.SetEndOfFile__
mov ecx, edi
call fcn.00418ad0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x10
call fcn.00433090
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [esi + 4], 1
mov dword [esi + 8], 0
mov dword [esi], vtable.XTOOGetLastErrorImp.0
mov dword [esi + 0xc], 0
call fcn.00418380
push 0x20
push str.Bad_implementation
mov ecx, esi
call fcn.00417660
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], vtable.XTOOLastError.0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00417470
cmp byte [edi + 8], 0
jne 0x41a4fb
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x41a4e8
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00418bc0
push 0x4638b4
lea eax, [ebp - 0x1c]
push eax
call fcn.004349e6
int3
Function at 0x41a520
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fd05
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x465040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x14], eax
push ecx
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.00423ac0
add esp, 4
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x41a567
mov eax, dword [esi + 0xc]
jmp 0x41a56c
mov eax, 0x45b258
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov ebx, eax
test esi, esi
je 0x41a594
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
jne 0x41a594
push ecx
mov ecx, esi
call fcn.0041c140
cmp ebx, 0xffffffff
je 0x41a59e
test bl, 0x10
jne 0x41a5ff
mov ebx, dword [ebp - 0x14]
mov edx, ebx
push ecx
lea ecx, [ebp - 0x14]
call fcn.00423ac0
add esp, 4
mov dword [ebp - 4], 4
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x41a5c2
mov eax, dword [esi + 0xc]
jmp 0x41a5c7
mov eax, 0x45b258
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41a5ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41a613
mov ecx, ebx
call fcn.00418cf0
test al, 0x10
je 0x41a613
test esi, esi
je 0x41a5ff
lock xadd dword [esi], edi
dec edi
jne 0x41a5ff
push ecx
mov ecx, esi
call fcn.0041c140
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x41a626
lock xadd dword [esi], edi
dec edi
jne 0x41a626
push ecx
mov ecx, esi
call fcn.0041c140
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ab50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fde0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x465040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
or ebx, 0xffffffff
mov dword [ebp - 0x10], 0
test edx, edx
jne 0x41abce
lea ecx, [ebp - 0x18]
call fcn.0041c4a0
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax]
cmp ecx, edx
je 0x41abb6
mov dword [ebp - 0x10], edx
mov dword [eax], 0
test ecx, ecx
je 0x41abb6
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x41abb6
push ecx
call fcn.0041c140
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x41abf1
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x41abf1
push ecx
call fcn.0041c140
jmp 0x41abf1
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41abd3
push str.unknown
push 0xffffffffffffffff
lea eax, [ebp + 0xc]
sub ecx, esi
push eax
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.0041d410
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x41abfd
lock inc dword [esi]
jmp 0x41abff
xor esi, esi
mov dword [ebp - 4], 0
mov eax, dword [0x4674d0]
test eax, eax
jne 0x41ac5f
mov eax, dword [0x467914]
push ecx
add eax, 4
mov byte [ebp - 4], 0
push 2
push eax
lea ecx, [ebp - 0x28]
call fcn.004191a0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00418c50
lea ecx, [ebp - 0x28]
mov dword [0x4674d0], eax
call fcn.00419d60
mov eax, dword [0x4674d0]
test eax, eax
jne 0x41ac5f
test esi, esi
je 0x41ac5b
mov eax, ebx
lock xadd dword [esi], eax
dec eax
jne 0x41ac5b
push ecx
mov ecx, esi
call fcn.0041c140
xor edi, edi
jmp 0x41aca4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push 0
push ecx
test esi, esi
je 0x41ac93
push dword [esi + 4]
push dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [ebp - 0x14]
mov eax, ebx
lock xadd dword [esi], eax
dec eax
jne 0x41aca4
push ecx
mov ecx, esi
call fcn.0041c140
jmp 0x41aca4
push 0
push 0x45b258
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x41acb8
lock xadd dword [ecx], ebx
dec ebx
jne 0x41acb8
push ecx
call fcn.0041c140
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
Function at 0x422cd0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
mov ebp, ecx
push edi
mov edi, dword [ebp]
test edi, edi
je 0x422d78
test byte [edi + 0x10], 2
je 0x422ced
mov eax, dword [edi + 8]
pop edi
pop ebp
pop ecx
ret
mov edx, dword [edi + 0xc]
push esi
mov esi, dword [edi + 4]
mov dword [esp + 0xc], 0
cmp esi, 4
ja 0x422d24
push esi
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00435f00
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [edi + 8], eax
mov ecx, dword [ebp]
pop esi
pop edi
or word [ecx + 0x10], 2
pop ebp
pop ecx
ret
mov ecx, esi
xor eax, eax
sar ecx, 2
test ecx, ecx
je 0x422d47
push ebx
xor ebx, ebx
shl eax, 7
shr ebx, 0x19
or eax, ebx
xor eax, dword [edx]
add edx, 4
mov ebx, eax
sub ecx, 1
jne 0x422d32
pop ebx
and esi, 3
je 0x422d68
mov ecx, eax
nop
shr ecx, 0x19
lea edx, [edx + 1]
shl eax, 7
or eax, ecx
movzx ecx, byte [edx - 1]
xor eax, ecx
mov ecx, eax
sub esi, 1
jne 0x422d50
mov dword [edi + 8], eax
mov ecx, dword [ebp]
pop esi
pop edi
pop ebp
or word [ecx + 0x10], 2
pop ecx
ret
pop edi
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x431c80
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xorps xmm0, xmm0
movups xmmword [ebp], xmm0
movq qword [ebp + 0x10], xmm0
movups xmmword [ebp + 0x30], xmm0
movq qword [ebp + 0x40], xmm0
nop
movlpd qword [esp + 0x10], xmm0
movq xmm0, qword [esp + 0x10]
movq qword [ebp + 0x38], xmm0
nop
lock inc dword [esp + 0x10]
nop
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
rdtsc
nop
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
movq xmm0, qword [esp + 0x10]
movq qword [ebp + 8], xmm0
nop
lock inc dword [esp + 0x10]
nop
nop
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
movq xmm0, qword [esp + 0x10]
movq qword [ebp], xmm0
nop
lock inc dword [esp + 0x10]
nop
nop
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
movq xmm0, qword [esp + 0x10]
movq qword [ebp + 0x10], xmm0
nop
lock inc dword [esp + 0x10]
nop
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x20]
push eax
mov dword [ebp + 0x20], 1
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 1
mov dword [ebp + 0x2c], 0
call esi
rdtsc
push 5
mov edi, eax
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x18]
push eax
call esi
mov esi, dword [esp + 0x18]
sub esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
sbb ecx, dword [esp + 0x24]
push ecx
push esi
push dword [esp + 0x34]
rdtsc
push dword [esp + 0x34]
sub eax, edi
sbb edx, ebx
push edx
push eax
call fcn.00431eb0
mov dword [ebp + 0x18], eax
add esp, 0x18
mov dword [ebp + 0x1c], edx
rdtsc
nop
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
movq xmm0, qword [esp + 0x10]
movq qword [ebp + 8], xmm0
nop
lock inc dword [esp + 0x10]
nop
nop
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
movq xmm0, qword [esp + 0x10]
movq qword [ebp], xmm0
nop
lock inc dword [esp + 0x10]
nop
nop
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
movq xmm0, qword [esp + 0x10]
movq qword [ebp + 0x10], xmm0
nop
lock inc dword [esp + 0x10]
nop
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x433ebf
Capabilities:
Parse pe header

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