joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54c597
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100244c0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1003300c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x38], 0
lea ebx, [edi + 0x38]
mov dword [edi], 0x100299ac
mov dword [edi + 4], 0x1002999c
mov dword [edi + 0x30], 1
je 0x54c601
xor esi, esi
cmp dword [edi + 0x34], 0
je 0x54c5f2
push 0x64
inc esi
call dword [0x10028068]
cmp esi, 0x1e
jl 0x54c5de
push 0x1388
push ebx
lea ecx, [edi + 4]
call dword [0x100281b0]
push 0
mov ecx, ebx
call fcn.005569f7
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x54c63d
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, dword [edi + 0x10]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
mov edx, dword [esi]
mov ecx, esi
mov dword [ebp - 0x10], eax
call dword [edx]
test eax, eax
jg 0x54c636
push dword [ebp - 0x10]
call dword [0x10028090]
mov dword [edi + 0x10], 0
mov edx, dword [edi + 0xf0]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x54c65b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi + 0xcc]
cmp ecx, 0x10
jb 0x54c695
mov eax, dword [edi + 0xb8]
inc ecx
cmp ecx, 0x1000
jb 0x54c68b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x54c782
mov eax, edx
push ecx
push eax
call fcn.0056e3e5
add esp, 8
mov dword [edi + 0xc8], 0
mov dword [edi + 0xcc], 0xf
mov byte [edi + 0xb8], 0
mov ecx, dword [edi + 0xb4]
cmp ecx, 0x10
jb 0x54c6ea
mov eax, dword [edi + 0xa0]
inc ecx
cmp ecx, 0x1000
jb 0x54c6e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x54c782
mov eax, edx
push ecx
push eax
call fcn.0056e3e5
add esp, 8
mov dword [edi + 0xb0], 0
lea ecx, [edi + 0x94]
mov dword [edi + 0xb4], 0xf
mov byte [edi + 0xa0], 0
call fcn.00556bb7
lea ecx, [edi + 0x40]
call fcn.0054c417
mov dword [ebp - 4], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x54c75d
push eax
call dword [0x10028044]
test eax, eax
jne 0x54c750
mov ecx, dword [ebx]
test ecx, ecx
je 0x54c743
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx], 0
push 4
push dword [ebx + 4]
call fcn.0056e3e5
add esp, 8
mov dword [ebx], 0
mov dword [ebx + 4], 0
lea eax, [edi + 0x18]
push eax
call dword [0x10028084]
lea ecx, [edi + 4]
call dword [0x100281b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [0x10028270]
int3
Function at 0x557b27
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025959
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1003300c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0055ad17
lea eax, [esi + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x18]
call fcn.0055ad17
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
mov dword [ebp + 8], ecx
push ecx
push eax
call fcn.005588b7
lea eax, [esi + 0x38]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x38]
call fcn.00557ed7
lea eax, [esi + 0x44]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x44]
call fcn.00557c87
mov eax, dword [esi + 0x50]
mov dword [edi + 0x50], eax
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 4

Function at 0x55b8f7
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x569cf7
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026d3f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1003300c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [0x100339cc]
mov dword [ebp - 4], 0
lea edi, [ecx + 0xc]
mov dword [ecx], 0x1002aa04
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov byte [ebp - 4], 1
mov esi, dword [ebp + 8]
push 0x7c
mov dword [ecx + 4], esi
mov dword [ecx + 8], eax
call fcn.0056e9e9
mov ecx, eax
add esp, 4
mov dword [ebp - 0x10], ecx
mov dword [ecx], 0x1002a028
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0xf
mov byte [ecx + 8], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0xf
mov byte [ecx + 0x20], 0
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x4c], 0xf
mov byte [ecx + 0x38], 0
mov dword [ecx + 0x74], 0
mov dword [ecx + 0x78], 0xf
mov byte [ecx + 0x64], 0
mov dword [ecx + 4], esi
call fcn.00560967
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 8], eax
je 0x569dcf
mov dword [eax], ecx
add dword [edi + 4], 4
jmp 0x569ddb
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, edi
call fcn.0056e087
push 0xd8
call fcn.0056e9e9
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 3
lea ecx, [esi + 4]
xorps xmm0, xmm0
mov dword [esi], 0x1002a2d0
push 0
movups xmmword [ecx], xmm0
push ecx
movq qword [ecx + 0x10], xmm0
call dword [0x10028088]
test eax, eax
jne 0x569e2c
call dword [0x1002808c]
test eax, eax
jle 0x569e26
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x569f09
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0xf
mov byte [esi + 0x38], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0xf
mov byte [esi + 0x50], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0xf
mov byte [esi + 0x68], 0
push 0
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 8
call dword [0x10028178]
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xcc], 0
mov dword [esi + 0xd0], 0xf
mov byte [esi + 0xbc], 0
mov byte [ebp - 4], 0xb
mov ecx, esi
mov eax, dword [ebp + 8]
mov dword [esi + 0x1c], eax
call fcn.00563c77
mov byte [ebp - 4], 1
mov eax, dword [edi + 4]
mov dword [ebp + 8], esi
cmp dword [edi + 8], eax
je 0x569ee7
mov dword [eax], esi
add dword [edi + 4], 4
jmp 0x569ef3
lea ecx, [ebp + 8]
push ecx
push eax
mov ecx, edi
call fcn.0056e087
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push eax
call fcn.0055b2a7
int3
Function at 0x56e6a3
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x56e6de
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x56e6d7
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x56e6e3
add edx, 0x28
cmp edx, esi
jne 0x56e6c8
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x56e6e0
Function at 0x8ccbb0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x8cc92e
mov edx, ebx
call fcn.008ccbdf
dec ebx
add ebx, ebx
xor dword [esi], eax
add edx, 0xecd2d1e0
sub edx, 0xd8f38494
inc esi
sub edx, 0x5e478477
and edx, edx
cmp esi, edi
jne fcn.008ccbb0
sub edx, edx
ret
Function at 0x4099d9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411810
cmp edx, dword [eax]
je 0x4099fb
add eax, 8
inc ecx
cmp eax, 0x4118a0
jl 0x4099ec
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411810]
jne 0x409b29
mov eax, dword [0x411e1c]
cmp eax, 1
je 0x409b03
test eax, eax
jne 0x409a2c
cmp dword [0x40f274], 1
je 0x409b03
cmp edx, 0xfc
je 0x409b29
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409a63
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040b460
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040ab60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x409aa6
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ab60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e53c
push edi
call fcn.0040bb60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040b460
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040b470
lea eax, [ebp - 0xa0]
push 0x40e51c
push eax
call fcn.0040b470
push dword [esi + 0x411814]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b470
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040baca
add esp, 0x2c
pop edi
jmp 0x409b29
lea eax, [ebp + 8]
lea esi, [esi + 0x411814]
push 0
push eax
push dword [esi]
call fcn.0040ab60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
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 eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x5d8ad6
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x5d87dc
add esi, 0xd27c0f51
mov ecx, 0xe978b021
dec esi
call fcn.005d8b0f
dec ecx
or esi, esi
sub esi, ecx
xor dword [edi], ebx
mov ecx, ecx
add edi, 2
add ecx, 0xe530ac4f
and ecx, ecx
cmp edi, eax
jl fcn.005d8ad6
dec ecx
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x402b20
Capabilities:
Check if file exists
Get file attributes
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e6a3
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x454068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x10
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x402ba7
lea ecx, [ebp - 0x9c]
call fcn.00402d70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
cmp word [ebp - 0x30], 0
je 0x402b8a
add ecx, 2
cmp word [ecx], 0
jne 0x402b81
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
call fcn.00404950
lea ecx, [ebp - 0x9c]
call fcn.00402c80
jmp 0x402bdb
mov edx, str.GetComputerName_failed
call fcn.00405500
push eax
call fcn.004057b0
add esp, 4
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
push 0
push 0x44e0f6
call fcn.00404db0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x3c], 0
jne 0x402c02
mov edx, str.Failed_to_get_computer_name
call fcn.00405500
push eax
call fcn.004057b0
add esp, 4
mov esi, 1
jmp 0x402c22
push str.C:_Windows_Temp_svchost.exe
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea edx, [ebp - 0x4c]
cmp eax, 0xffffffff
je 0x402c19
mov cl, 1
jmp 0x402c1b
xor cl, cl
call fcn.004027a0
xor esi, esi
mov edx, dword [ebp - 0x38]
cmp edx, 0x10
jb 0x402c52
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402c48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c6e
push edx
push ecx
call fcn.0041e7ac
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e766
mov esp, ebp
pop ebp
ret
call fcn.004232ba
int3
Function at 0x43130b
Capabilities:
Read file on windows

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

Function at 0x437b85
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00437845
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x4f4af5
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4f486f
sub esi, 0x17d40284
sub edx, 0x5716b0c6
call fcn.004f4b2c
inc esi
mov edx, edx
xor dword [ecx], eax
sub esi, esi
add edx, esi
add ecx, 1
sub edx, edx
cmp ecx, ebx
jne fcn.004f4af5
dec esi
ret
Function at 0x405067
Capabilities:
Connect socket
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 2
lea ebx, [esi + eax]
pop eax
push 0x1bd
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x38], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x36], ax
xor eax, eax
mov byte [ebp - 0x34], 0
lea edi, [ebp - 0x33]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 4
mov edi, 0x200
push edi
call fcn.0040905b
push 4
push edi
mov dword [ebp - 0xc], eax
call fcn.0040905b
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp esi, ebx
jae 0x405219
xor ebx, ebx
cmp esi, dword [ebp - 0x14]
jae 0x405219
cmp ebx, edi
jae 0x405139
push dword [ebp + 8]
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.WS2_32.dll_htonl]
inc dword [ebp + 8]
push 6
push esi
push 2
mov dword [ebp - 0x34], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
je 0x405131
lea eax, [ebp - 0x20]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x405131
push 0x10
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40512a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x405131
mov eax, dword [ebp - 0xc]
mov dword [eax + ebx*4], esi
inc ebx
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 8], eax
jb 0x4050ce
test ebx, ebx
je 0x40520d
push dword [ebp - 0xc]
call fcn.00404fa9
and dword [ebp - 8], 0
pop ecx
mov eax, dword [ebp - 0xc]
dec ebx
lea esi, [eax + ebx*4]
cmp dword [esi], 0
mov dword [ebp - 0x1c], ebx
je 0x4051e1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1007
push pe_overlay
mov dword [ebp - 0x24], 4
push dword [esi]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4051e1
cmp dword [ebp - 0x10], eax
jne 0x4051e1
push 2
push 1
lea eax, [ebp - 1]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4051ab
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x4051b8
cmp dword [ebp - 0x10], 0x2733
jne 0x4051de
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x28], 0x10
push dword [esi]
call dword [sym.imp.WS2_32.dll_getpeername]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
inc dword [ebp - 8]
mov dword [ecx + edx*4], eax
mov ebx, dword [ebp - 0x1c]
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
test ebx, ebx
jne 0x40514e
jmp 0x405207
push dword [ebp + 0xc]
dec dword [ebp - 8]
push dword [ebp - 0x44]
call fcn.00402084
pop ecx
pop ecx
test eax, eax
je 0x405219
cmp dword [ebp - 8], 0
jne 0x4051f3
mov esi, dword [ebp + 8]
cmp esi, dword [ebp - 0x14]
jb 0x4050c3
push dword [ebp - 0xc]
call fcn.004090a1
pop ecx
push dword [ebp - 0x18]
call fcn.004090a1
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408ebe
Capabilities:
Get file attributes
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor eax, eax
push eax
push eax
push 3
push eax
push 7
push closesocket
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408fa2
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x408f96
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
or ebx, 0xffffffff
mov dword [ebp - 0x18], eax
or eax, ecx
mov dword [ebp - 0x14], ecx
je 0x408fa2
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x408fa2
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 8], eax
and dword [ebp - 8], 1
je 0x408f3e
and eax, 0xfffffffe
push eax
push edi
call esi
test byte [ebp + 0x14], 1
jne 0x408f67
cmp dword [ebp - 0x14], 0
ja 0x408f53
cmp dword [ebp - 0x18], 0x180000
jb 0x408f67
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
call fcn.00408c42
jmp 0x408f79
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
call fcn.00408782
add esp, 0x10
cmp dword [ebp - 8], 0
mov dword [ebp - 4], eax
je 0x408fa2
push dword [ebp - 0xc]
test eax, eax
je 0x408f93
push dword [ebp + 0x10]
call esi
jmp 0x408fa2
push edi
call esi
cmp ebx, 0xffffffff
je 0x408fa2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0xfc9904
Capabilities:
Encode data using xor

Disassembly:
jmp 0xfc990e
pushal
call 0xfc9914
pop ebp
sub ebp, 0x10
sub ebp, 0xbc9904
jmp 0xfc992a
mov eax, 0xbc9904
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d0
mov edx, 0x422e05ba
xor byte [eax], dl
inc eax
dec ecx
jne 0xfc9941
jmp 0xfc9954
xor dword [edi + 0x31], esi
xor eax, dword [esi + 0x3bbababa]
jnp 0xfc99a1
mov edx, 0x77b9baba
add bh, byte [ebp + 0xbababa]
xchg edx, eax
mov edx, 0x584dbaba
mov ecx, 0xb63b3172
mov edx, 0x7fb9baba
aaa
ficomp word [esi - 0x6141ccba]
aaa
ficomp word [esi - 0x6141ccba]
rcr byte [edx], cl
wait
mov edx, 0x21bed9d2
mov edx, 0xd29e96bb
insd dword es:[edi], dx
nop
imul ecx, dword [esi + 0x52], 0xbabababf
push ebx
nop
mov edx, 0x37efbaba
salc
sahf
mov edx, 0xbab23f31
mov edx, 0xb62f31ba
mov edx, 0x3731baba
stosb byte es:[edi], al
mov edx, 0x537bbaba
mov eax, 0x7839b88b
mov esi, 0x4e3fb5f3
inc ebp
inc ebp
inc ebp
out 0x78, eax
mov dh, 0xba
xor dword [esi], esi
sahf
mov esi, 0xd2bababa
sbb ch, byte [esi]
wait
mov edx, 0x21bed9d2
mov edx, 0x379e96bb
ficomp word [esi - 0x6149ccba]
push edx
mov edi, 0x53bababa
cmp dword [eax - 0x11104546], 0xffffffe7
inc ebp
iretd