joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c400
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x41fcc0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40c5ad
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x41fbc0]
lea edi, [ecx*4 + 0x41fbc0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40c5ad
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40c46e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40c47f
push 2
push ebp
push eax
call fcn.0040e480
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40c5de
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x40c529
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40c4da
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40c4c7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40c4aa
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c5cf
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x40c525
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40c4a6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40c59e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40c572
cmp eax, 5
jne 0x40c55b
mov dword [0x41e5e0], eax
mov dword [0x41e5dc], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0040c750
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x40c592
cmp byte [ebp], 0x1a
jne 0x40c592
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x41e5dc], 0x1c
jmp 0x40c5b7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x41e5dc], 9
pop edi
pop esi
pop ebp
mov dword [0x41e5e0], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40c525
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c60f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x40c529
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40c529
Function at 0x40f520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f543
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c750
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x40f566
test byte [esp + 8], 2
je 0x40f566
mov dword [0x41e5dc], 0xd
mov dword [0x41e5e0], 5
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x410100
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x410123
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c750
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x410146
test byte [esp + 8], 2
je 0x410146
mov dword [0x41e5dc], 0xd
mov dword [0x41e5e0], 5
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x412860
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x412a1e
push 0x3d
push edi
call fcn.00414d40
mov esi, eax
add esp, 8
test esi, esi
je 0x412a1e
cmp edi, esi
je 0x412a1e
mov dl, byte [esi + 1]
mov ecx, dword [0x41e608]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x41e604]
cmp eax, ecx
jne 0x4128b7
push eax
call fcn.00412af0
add esp, 4
mov dword [0x41e604], eax
test eax, eax
jne 0x412932
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4128de
mov eax, dword [0x41e60c]
test eax, eax
je 0x4128de
call fcn.0040d9e0
test eax, eax
je 0x41292d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4128ea
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.00407800
add esp, 4
mov dword [0x41e604], eax
test eax, eax
je 0x412a1e
mov dword [eax], 0
mov eax, dword [0x41e60c]
test eax, eax
jne 0x41292d
push 4
call fcn.00407800
add esp, 4
mov dword [0x41e60c], eax
test eax, eax
je 0x412a1e
mov dword [eax], 0
mov eax, dword [0x41e604]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00412a70
mov esi, eax
add esp, 8
test esi, esi
jl 0x412a2f
cmp dword [ebx], 0
je 0x412a2f
test ebp, ebp
je 0x412a27
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.004078b0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x412989
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x412978
lea eax, [esi*4]
push eax
push ebx
call fcn.0040a330
add esp, 8
test eax, eax
je 0x4129a3
mov dword [0x41e604], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x412a16
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00407800
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x412a16
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.004078b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x4129a7
test ebp, ebp
jne 0x412a16
test esi, esi
jge 0x412a39
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.0040a330
add esp, 8
test eax, eax
je 0x412a1e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x41e604], eax
jmp 0x4129a7
Function at 0x415df0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00417430
mov eax, dword [0x41fcc0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x415f52
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x41fbc0]
test byte [edx + ecx*8 + 4], 1
je 0x415f52
push 1
push ebp
push ebx
call fcn.0040e480
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x415f5c
push 2
push ebp
push ebx
call fcn.0040e480
add esp, 0xc
cmp eax, 0xffffffff
je 0x415f5c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x415ef8
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00408cf0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x415e9f
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0040c400
add esp, 0xc
cmp eax, 0xffffffff
je 0x415ebb
sub esi, eax
test esi, esi
jle 0x415ed1
jmp 0x415e90
cmp dword [0x41e5e0], 5
jne 0x415ece
mov dword [0x41e5dc], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00408cf0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.0040e480
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x415f39
push 0
push ecx
push ebx
call fcn.0040e480
add esp, 0xc
push ebx
call fcn.0040c9d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x415f39
mov dword [0x41e5dc], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x41e5e0], eax
push 0
push edi
push ebx
call fcn.0040e480
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x41e5dc], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x416170
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x41e944]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
test eax, eax
jne 0x4161b8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x416198
mov eax, 1
jmp 0x4161b3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x416289
mov eax, 2
mov dword [0x41e944], eax
cmp eax, 1
jne 0x4161d8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x41629b
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4161f3
mov ecx, dword [0x41e760]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
test esi, esi
jne 0x416212
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00407800
mov edi, eax
add esp, 4
test edi, edi
jne 0x416226
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x416280
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x416264
mov edx, dword [esp + 0x24]
push eax
push eax
push 0xffffffffffffffff
push edi
push 1
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x416280
push edi
call fcn.004078b0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push edi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jne 0x416290
push edi
call fcn.004078b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.004078b0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4162a0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x41e948]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x4162e8
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x4162c8
mov eax, 2
jmp 0x4162e3
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4163c8
mov eax, 1
mov dword [0x41e948], eax
cmp eax, 2
jne 0x416308
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x4163da
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x416323
mov ecx, dword [0x41e760]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x416342
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00407800
mov esi, eax
add esp, 4
test esi, esi
jne 0x416359
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4163bf
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x4163a0
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4163bf
push esi
call fcn.004078b0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x4163cf
push esi
call fcn.004078b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.004078b0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x417130
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
test ebp, ebp
push edi
je 0x4172ea
push 0x3d
push ebp
call fcn.00409360
mov esi, eax
add esp, 8
test esi, esi
je 0x4172ea
cmp ebp, esi
je 0x4172ea
xor eax, eax
mov ecx, dword [0x41e610]
cmp word [esi + 2], ax
sete al
mov edi, eax
mov eax, dword [0x41e60c]
cmp eax, ecx
mov dword [esp + 0x10], edi
jne 0x41718a
push eax
call fcn.004173c0
add esp, 4
mov dword [0x41e60c], eax
test eax, eax
jne 0x41720a
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov ecx, dword [0x41e604]
je 0x4171b2
test ecx, ecx
je 0x4171b2
call fcn.00415a20
test eax, eax
je 0x417205
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test edi, edi
je 0x4171be
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ecx, ecx
jne 0x4171e4
push 4
call fcn.00407800
add esp, 4
mov dword [0x41e604], eax
test eax, eax
je 0x4172ea
mov dword [eax], 0
mov eax, dword [0x41e60c]
test eax, eax
jne 0x41720a
push 4
call fcn.00407800
add esp, 4
mov dword [0x41e60c], eax
test eax, eax
je 0x4172ea
mov dword [eax], 0
mov eax, dword [0x41e60c]
mov ecx, dword [esp + 0x18]
sub esi, ebp
mov ebp, esi
mov ebx, eax
sar ebp, 1
push ebp
push ecx
call fcn.00417340
mov esi, eax
add esp, 8
test esi, esi
jl 0x4172fc
cmp dword [ebx], 0
je 0x4172fc
test edi, edi
je 0x4172f3
mov edx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push edx
call fcn.004078b0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x417263
mov eax, edi
mov ecx, dword [eax + 4]
add eax, 4
mov dword [edi], ecx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x417252
lea edx, [esi*4]
push edx
push ebx
call fcn.0040a330
add esp, 8
test eax, eax
je 0x41727d
mov dword [0x41e60c], eax
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4172e2
mov eax, dword [esp + 0x18]
push eax
call fcn.004085b0
add esp, 4
lea ecx, [eax + eax + 4]
push ecx
call fcn.00407800
mov esi, eax
add esp, 4
test esi, esi
je 0x4172e2
mov edx, dword [esp + 0x18]
push edx
push esi
call fcn.00407af0
add esp, 8
lea eax, [esi + ebp*2 + 2]
neg edi
sbb edi, edi
mov word [esi + ebp*2], 0
not edi
and edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.004078b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
mov dword [ebx + esi*4], eax
jmp 0x417281
test edi, edi
jne 0x4172e2
test esi, esi
jge 0x417306
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.0040a330
add esp, 8
test eax, eax
je 0x4172ea
mov edx, dword [esp + 0x18]
mov dword [eax + esi*4], edx
mov dword [eax + esi*4 + 4], 0
mov dword [0x41e60c], eax
jmp 0x417281
Function at 0x401790
Capabilities:
Encode data using xor

Disassembly:
xor esp, dword [edx + ebx*2 + 0x3b]
add byte [ebx + 0x1b308c4], al
dec edi
adc eax, sym.imp.MSVCRT.dll_exit
inc edi
push ebp
jp 0x40177f
sub esp, 0xb8
mov eax, dword [0x41021d]
test eax, eax
mov eax, dword [0x41404c]
je 0x4017bb
leave
inc eax
cmp al, 0x41
add byte [eax - 0x18], dl
sahf
inc eax
in al, 0
push eax
call 0x1245850
mov sp, word [edi + 0x410274]
jmp 0x4017cf
mov edx, dword [0x411800]
push edx
jns 0x4017ac
mov byte [eax], al
add byte [edi], ah
mov ebx, dword [ebx + 0x3f17f4]
mov dword [0x411f08], eax
imul ecx, dword [eax + 0x53004102], 0x56
mov esi, dword [0x5cc164]
mov word [eax + 0x410bb4], si
test eax, eax
pop ds
mov ah, 0x5d
mov edx, dword [0x8b0d00]
push 0x70d498
invalid

Function at 0x40451b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
dec dword [eax]
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add esp, 0x40
cmp dword [esi - 0x137397c0], 0x72
add byte [ecx - 1], dl
salc
cmp al, 0x15
enter 0x4051, 0
cmp byte [esp + ebp*8 - 0x3d7cffc0], ch
inc eax
push edx
rcl dh, 4
enter 0x40c0, 0
push 0x240ec7c
add eax, 0x40
push eax
call esi
mov ecx, dword [0x4e40a2c8]
push 0x240240
add ecx, 0x40
push ecx
mov ebx, 0x90808bd6
xor eax, 0xfb12fa8a
jno 0x4044b2

Function at 0x40a2a7
Capabilities:
Encode data using xor

Disassembly:
dec dword [edx]
dec ebp
loopne 0x40a26a
inc eax
add dword [ebp + 0x2ee75c0], 0xffffff8b
xor eax, sym.imp.KERNEL32.dll_GetLastError
call esi
test eax, eax
pop edi
add ebp, dword [ebx]
pop ebp
ret

Function at 0x40add0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov edx, ebx
mov eax, dword [ebp - 0x4b]
mov ecx, dword [ebp + 0xc]
cmp eax, 0x10
jae 0x40adee
js 0x40adf5
sub al, 0xc1
inc eax
add bh, al
add byte [ebx + eax*2], bl
fiadd dword [eax]
test al, 0xba
pop ebp
ret
push ebx
pop ebp
mov esi, dword [ebp - 0x67]
push edi
cmp al, byte [eax + eax]
add al, 0
add byte [eax], al

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403f50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x441c79
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x28]
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push ecx
xor eax, eax
push eax
push esi
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x1c], 1
mov byte [esp + 0x3c], bl
call fcn.004033c0
mov eax, dword [esi + 4]
shr ebx, 8
mov byte [esp + 0x2c], bl
cmp eax, edi
jne 0x403fb9
xor edx, edx
jmp 0x403fbe
mov edx, dword [esi + 8]
sub edx, eax
cmp eax, edi
je 0x403fe8
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp edx, ecx
jae 0x403fe8
mov eax, dword [esi + 8]
mov byte [eax], bl
inc eax
mov dword [esi + 8], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edi, dword [esi + 8]
cmp eax, edi
jbe 0x403ff5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x2c]
push eax
push edi
push esi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004033c0
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x404020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x441ca9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 8], ebp
push esi
mov esi, dword [esp + 0x28]
push edi
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov ebx, dword [esp + 0x30]
lea ecx, [esp + 0x30]
push ecx
xor eax, eax
push eax
push esi
lea edx, [esp + 0x20]
push edx
mov ecx, esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], 1
mov byte [esp + 0x40], bl
call fcn.004033c0
mov eax, dword [esi + 4]
mov edx, ebx
shr edx, 8
mov byte [esp + 0x30], dl
cmp eax, ebp
jne 0x40408c
xor edi, edi
jmp 0x404091
mov edi, dword [esi + 8]
sub edi, eax
cmp eax, ebp
je 0x4040a9
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp edi, ecx
jae 0x4040a9
mov eax, dword [esi + 8]
mov byte [eax], dl
inc eax
mov dword [esi + 8], eax
jmp 0x4040c9
mov edi, dword [esi + 8]
cmp eax, edi
jbe 0x4040b6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea ecx, [esp + 0x30]
push ecx
push edi
push esi
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.004033c0
mov eax, dword [esi + 4]
mov edx, ebx
shr edx, 0x10
mov byte [esp + 0x30], dl
cmp eax, ebp
jne 0x4040dd
xor edi, edi
jmp 0x4040e2
mov edi, dword [esi + 8]
sub edi, eax
cmp eax, ebp
je 0x4040fa
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp edi, ecx
jae 0x4040fa
mov eax, dword [esi + 8]
mov byte [eax], dl
inc eax
mov dword [esi + 8], eax
jmp 0x40411a
mov edi, dword [esi + 8]
cmp eax, edi
jbe 0x404107
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea ecx, [esp + 0x30]
push ecx
push edi
push esi
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.004033c0
mov eax, dword [esi + 4]
shr ebx, 0x18
mov byte [esp + 0x30], bl
cmp eax, ebp
jne 0x40412c
xor edx, edx
jmp 0x404131
mov edx, dword [esi + 8]
sub edx, eax
cmp eax, ebp
je 0x40415c
mov ecx, dword [esi + 0xc]
sub ecx, eax
cmp edx, ecx
jae 0x40415c
mov eax, dword [esi + 8]
mov byte [eax], bl
inc eax
pop edi
mov dword [esi + 8], eax
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edi, dword [esi + 8]
cmp eax, edi
jbe 0x404169
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea eax, [esp + 0x30]
push eax
push edi
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004033c0
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x408fa0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
mov esi, ecx
call fcn.00408ca0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x408fc8
mov byte [esi + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], eax
lea ecx, [esi + 0x24]
mov word [esi + 0x20], 0
mov byte [esi + 0x22], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
lea ecx, [esi + 0x40]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
mov eax, dword [0x454560]
mov dword [esi + 0x5c], eax
pop esi
ret

Function at 0x409000
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44247c
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x409069
cmp byte [esi + 0x18], 0
jne 0x409069
cmp byte [esi + 0x20], 0
je 0x409069
cmp byte [esi + 0x22], 0
je 0x409069
push 0
push 0x400
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x40907f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x2733
je 0x409068
mov byte [esi + 0x18], 1
call edi
mov dword [esi + 0x1c], eax
pop edi
pop esi
mov ecx, dword [esp + 0x41c]
mov dword fs:[0], ecx
add esp, 0x428
ret
test eax, eax
jne 0x4090a0
mov byte [esi + 0x20], al
mov byte [esi + 0x18], 1
pop esi
mov ecx, dword [esp + 0x41c]
mov dword fs:[0], ecx
add esp, 0x428
ret
jle 0x409069
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
push eax
lea ecx, [esi + 0x24]
mov dword [esp + 0x42c], 0
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 4]
mov dword [esp + 0x428], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [0x454560]
mov ecx, dword [esp + 0x420]
mov dword [esi + 0x5c], eax
pop esi
mov dword fs:[0], ecx
add esp, 0x428
ret