joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415654
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffa0
push ebx
push esi
push edi
mov byte [ebp - 0x1049], cl
mov edi, edx
mov ebx, eax
mov eax, dword [ebp + 0x14]
call fcn.00405a28
lea esi, [ebp - 0x1058]
xor eax, eax
push ebp
push 0x415836
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push edi
mov esi, 0x5baae0
lea edi, [ebp - 0x1048]
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push esi
push edi
mov esi, 0x5bab28
lea edi, [ebp - 0x1000]
mov ecx, 0x400
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push ebp
mov eax, dword [ebp + 0x14]
call fcn.00405868
push eax
mov eax, dword [ebp + 0x14]
call fcn.00405a38
pop edx
call fcn.00415540
pop ecx
cmp byte [ebp - 0x1049], 0
je 0x4156f0
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x1054], 1
jmp 0x415706
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x1054], 0xffffffff
shr edi, 3
dec edi
test edi, edi
jl 0x415820
inc edi
mov dword [ebp - 0x1060], edi
cmp dword [ebp + 0x10], 0
jne 0x415723
cmp dword [ebp + 0xc], 0
je 0x4157a0
mov dword [esi], 7
lea eax, [ebp + 0xc]
add eax, dword [esi]
movzx edx, byte [eax]
inc edx
and dl, 0xff
mov byte [eax], dl
lea eax, [ebp + 0xc]
add eax, dword [esi]
cmp byte [eax], 0
jne 0x41574a
dec dword [esi]
cmp dword [esi], 0xffffffff
jne 0x41572b
lea eax, [ebp + 0xc]
mov eax, dword [eax]
call fcn.00415154
mov dword [esi], eax
lea eax, [ebp + 0xc]
add eax, 4
mov eax, dword [eax]
call fcn.00415154
mov dword [ebp - 0x105c], eax
push ebp
mov eax, dword [ebp - 0x1054]
push eax
lea edx, [ebp - 0x105c]
mov eax, esi
mov ecx, dword [ebp - 0x1050]
call fcn.00415180
pop ecx
mov eax, dword [esi]
call fcn.00415154
xor dword [ebx], eax
mov eax, dword [ebp - 0x105c]
call fcn.00415154
lea edx, [ebx + 4]
xor dword [edx], eax
jmp 0x415811
cmp byte [ebp + 8], 0
jne 0x4157f8
mov edi, ebx
mov eax, dword [edi]
call fcn.00415154
mov dword [esi], eax
lea eax, [ebx + 4]
mov eax, dword [eax]
call fcn.00415154
mov dword [ebp - 0x105c], eax
push ebp
mov eax, dword [ebp - 0x1054]
push eax
lea edx, [ebp - 0x105c]
mov eax, esi
mov ecx, dword [ebp - 0x1050]
call fcn.00415180
pop ecx
mov eax, dword [esi]
call fcn.00415154
mov dword [edi], eax
mov eax, dword [ebp - 0x105c]
call fcn.00415154
lea edx, [ebx + 4]
mov dword [edx], eax
jmp 0x415811
push ebp
mov eax, dword [ebp - 0x1054]
push eax
mov edx, ebx
lea eax, [ebx + 4]
mov ecx, dword [ebp - 0x1050]
call fcn.00415180
pop ecx
add ebx, 8
dec dword [ebp - 0x1060]
jne 0x415719
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41583d
lea eax, [ebp + 0x14]
call fcn.004055a8
ret
Function at 0x4159f8
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
test edi, edi
jle 0x415b21
lea eax, [edi + 2]
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, edx
add edx, edx
mov eax, esi
call fcn.00405cc8
mov ecx, dword [esi]
mov eax, edi
mov esi, 3
cdq
idiv esi
mov esi, eax
test esi, esi
jle 0x415a93
movzx eax, byte [ebx]
shl eax, 0x10
movzx edx, byte [ebx + 1]
shl edx, 8
add eax, edx
movzx edx, byte [ebx + 2]
add eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x5bbb28]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + 0x5bbb28]
mov byte [ecx + 1], dl
mov edx, eax
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x5bbb28]
mov byte [ecx + 2], dl
and eax, 0x3f
movzx eax, byte [eax + 0x5bbb28]
mov byte [ecx + 3], al
add ecx, 4
add ebx, 3
dec esi
jne 0x415a33
mov eax, edi
mov esi, 3
cdq
idiv esi
dec edx
je 0x415aa8
dec edx
je 0x415ad9
jmp 0x415b28
movzx eax, byte [ebx]
shl eax, 0x10
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x5bbb28]
mov byte [ecx], dl
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x5bbb28]
mov byte [ecx + 1], al
mov byte [ecx + 2], 0x3d
mov byte [ecx + 3], 0x3d
jmp 0x415b28
movzx eax, byte [ebx]
shl eax, 0x10
movzx edx, byte [ebx + 1]
shl edx, 8
add eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x5bbb28]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + 0x5bbb28]
mov byte [ecx + 1], dl
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x5bbb28]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
jmp 0x415b28
mov eax, esi
call fcn.004055a8
pop edi
pop esi
pop ebx
ret
Function at 0x41c934
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405a28
xor eax, eax
push ebp
push 0x41ca23
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.00405a38
mov esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x41ca0d
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push esi
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x41ca0d
xor eax, eax
push ebp
push 0x41ca06
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edx, eax
mov eax, ebx
call fcn.00405cc8
cmp dword [ebx], 0
je 0x41c9e6
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.00405868
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x41c9e6
mov eax, dword [ebx]
call fcn.00405868
cmp eax, dword [ebp - 0x10]
je 0x41c9ea
xor eax, eax
jmp 0x41c9ec
mov al, 1
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ca0d
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ca2a
lea eax, [ebp - 4]
call fcn.004055a8
ret
Function at 0x421a30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov byte [esp + 4], cl
mov dword [esp], edx
mov edi, eax
mov ecx, edi
movzx eax, byte [esp]
mov byte [esp + 5], al
mov edx, edi
shr edx, 8
mov eax, dword [esp]
shr eax, 8
mov byte [esp + 6], al
mov eax, edi
shr eax, 0x10
mov ebx, dword [esp]
shr ebx, 0x10
mov byte [esp + 7], bl
xor esi, esi
cmp byte [esp + 4], 0
je 0x421ac4
movzx ebx, cl
movzx ebp, byte [esp + 5]
add ebx, ebp
cmp ebx, 0xff
jbe 0x421a88
inc esi
mov cl, 0xff
jmp 0x421a8c
add cl, byte [esp + 5]
movzx ebx, dl
movzx ebp, byte [esp + 6]
add ebx, ebp
cmp ebx, 0xff
jbe 0x421aa3
inc esi
mov dl, 0xff
jmp 0x421aa7
add dl, byte [esp + 6]
movzx ebx, al
movzx ebp, byte [esp + 7]
add ebx, ebp
cmp ebx, 0xff
jbe 0x421abe
inc esi
mov al, 0xff
jmp 0x421af1
add al, byte [esp + 7]
jmp 0x421af1
cmp cl, byte [esp + 5]
jae 0x421acf
inc esi
xor ecx, ecx
jmp 0x421ad3
sub cl, byte [esp + 5]
cmp dl, byte [esp + 6]
jae 0x421ade
inc esi
xor edx, edx
jmp 0x421ae2
sub dl, byte [esp + 6]
cmp al, byte [esp + 7]
jae 0x421aed
inc esi
xor eax, eax
jmp 0x421af1
sub al, byte [esp + 7]
dec esi
jle 0x421b08
movzx ecx, byte [esp + 4]
xor cl, 1
mov edx, dword [esp]
mov eax, edi
call fcn.00421a30
jmp 0x421b1b
movzx eax, al
shl eax, 0x10
movzx edx, dl
shl edx, 8
add eax, edx
movzx edx, cl
add eax, edx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x422d28
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x422dab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x10
call fcn.0040907c
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x30]
sub eax, 0x2e
mov dword [esi + 8], eax
push 0x410
push esi
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00422ec0
mov eax, dword [ebp - 4]
call fcn.00405868
push eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00422ec0
mov eax, dword [ebp - 8]
call fcn.00405a38
push eax
push edi
call sub.user32.dll_DrawTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422db2
lea eax, [ebp - 8]
mov edx, 2
call fcn.004055cc
ret

Function at 0x4232a0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x4232e7
push 0
push 0
push 0xe
push esi
call sub.user32.dll_SendMessageA
mov edx, eax
inc edx
lea eax, [ebx + 0x50]
call fcn.00405cc8
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebx + 0x50]
call fcn.00405868
push eax
push 0xd
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_SendMessageA
mov edx, eax
lea eax, [ebx + 0x50]
call fcn.00405cc8
mov eax, edi
mov edx, dword [ebx + 0x50]
call fcn.004055fc
pop edi
pop esi
pop ebx
ret

Function at 0x42cf90
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42d0a7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
jbe 0x42d082
mov eax, ebx
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00405818
cmp dword [ebx], 0
je 0x42d089
push 0
mov eax, dword [ebx]
call fcn.00405a38
push eax
call sub.kernel32.dll_CreateDirectoryA
mov eax, dword [ebx]
call fcn.00405868
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x42d01d
mov eax, ebx
mov edx, 0x42d0bc
call fcn.00405874
push dword [ebx]
lea edx, [ebp - 0x114]
xor eax, eax
call fcn.0042cb38
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.0042cb68
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.0042cd58
push dword [ebp - 0x10c]
push 0x42d0c8
mov eax, ebx
mov edx, 3
call fcn.0040593c
push 0
mov eax, dword [ebx]
call fcn.00405a38
push eax
call sub.kernel32.dll_CreateDirectoryA
mov eax, ebx
mov edx, 0x42d0bc
call fcn.00405874
jmp 0x42d089
mov eax, ebx
call fcn.004055a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d0ae
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.004055cc
ret
Function at 0x42d0d4
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
xor eax, eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42d1e4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.0042cf90
cmp dword [ebp - 4], 0
je 0x42d1be
mov eax, dword [ebp - 4]
call fcn.00405a38
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42d1be
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x148]
mov ecx, 0x42d1f8
mov edx, dword [ebp - 4]
call fcn.004058c0
mov eax, dword [ebp - 0x148]
call fcn.00405a38
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42d1b0
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x118]
mov ecx, 0x104
call fcn.00405818
mov ecx, dword [ebp - 0x150]
lea eax, [ebp - 0x14c]
mov edx, dword [ebp - 4]
call fcn.004058c0
mov eax, dword [ebp - 0x14c]
call fcn.00405a38
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x144]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x42d15e
push ebx
call sub.kernel32.dll_FindClose_1
mov eax, dword [ebp - 4]
call fcn.00405a38
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d1eb
lea eax, [ebp - 0x150]
mov edx, 3
call fcn.004055cc
lea eax, [ebp - 4]
call fcn.004055a8
ret

Function at 0x42d1fc
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
mov dword [esp], 0x104
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405818
add esp, 0x10c
pop ebx
ret
Function at 0x42d230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00405a28
mov eax, dword [ebp - 8]
call fcn.00405a28
xor eax, eax
push ebp
push 0x42d329
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004055a8
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00405a38
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42d30e
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00405a38
mov edi, eax
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
cmp dword [ebp - 0x10], 0
je 0x42d305
mov eax, dword [ebp - 0x10]
add eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x42d2ff
cmp dword [ebp - 0x14], 1
jne 0x42d2f3
mov eax, ebx
mov edx, esi
call fcn.004057a0
jmp 0x42d2ff
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov edx, esi
call fcn.00405698
push esi
call sub.kernel32.dll_LocalFree
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d330
lea eax, [ebp - 8]
mov edx, 2
call fcn.004055cc
ret

Function at 0x42d33c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405a28
mov eax, dword [ebp - 8]
call fcn.00405a28
mov eax, dword [ebp + 8]
call fcn.00405a28
xor eax, eax
push ebp
push 0x42d3f7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405a38
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x42d3d2
mov eax, dword [ebp + 8]
call fcn.00405868
inc eax
push eax
mov eax, dword [ebp + 8]
call fcn.00405a38
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00405a38
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x42d3d4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d3fe
lea eax, [ebp - 8]
mov edx, 2
call fcn.004055cc
lea eax, [ebp + 8]
call fcn.004055a8
ret
Function at 0x42d408
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405a28
mov eax, dword [ebp - 8]
call fcn.00405a28
xor eax, eax
push ebp
push 0x42d492
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00405a38
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42d475
mov eax, dword [ebp - 8]
call fcn.00405a38
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x42d477
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d499
lea eax, [ebp - 8]
mov edx, 2
call fcn.004055cc
ret

Function at 0x42d790
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0041461c
test eax, eax
je 0x42d820
add eax, 0x80
mov edx, dword [eax]
mov esi, edx
add esi, dword [ebp - 4]
add edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
test esi, esi
je 0x42d820
jmp 0x42d81a
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x10]
jbe 0x42d7d6
push ebp
call fcn.0042d6b8
pop ecx
jmp 0x42d820
cmp dword [esi + 0x10], 0
je 0x42d817
mov ebx, dword [ebp - 4]
add ebx, dword [esi + 0x10]
jmp 0x42d812
cmp edi, dword [ebx]
jne 0x42d80f
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x42d80f
mov eax, dword [ebp - 8]
mov dword [ebx], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
add ebx, 4
cmp dword [ebx], 0
jne 0x42d7e4
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x42d7c5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434838
Capabilities:
Create thread

Disassembly:
cmp dword [0x5bcb88], 0
jne 0x4348b6
xor eax, eax
call fcn.00413eb8
mov dword [0x5bcb88], eax
cmp dword [0x5bcb88], 0
je 0x4348b6
mov eax, 0x4346cc
xor ecx, ecx
xor edx, edx
call fcn.00414318
mov dword [0x5bcb8c], eax
push 0x5bcb80
push 0
push 0
push 0x43470c
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5bcb84], eax
cmp dword [0x5bcb84], 0
je 0x4348b6
push 0
push 0
push 0
mov ecx, 0x4348c0
mov edx, dword [0x5bcb84]
mov eax, dword [0x5bcb80]
call fcn.0042d8b8
push 2
mov eax, dword [0x5bcb84]
push eax
call sub.kernel32.dll_SetThreadPriority
ret

Function at 0x4348c4
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x5bcb88], 0
je 0x434942
cmp dword [0x5bcb98], 0
je 0x4348e9
mov eax, dword [0x5bcb98]
xor edx, edx
mov dword [0x5bcb98], edx
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [0x5bcb94], 0xffffffff
mov eax, 0x4346cc
xor ecx, ecx
xor edx, edx
call fcn.0041451c
push 0
mov eax, dword [0x5bcb84]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x5bcb84]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x5bcb80]
call fcn.0042d8b8
xor eax, eax
mov dword [0x5bcb84], eax
xor eax, eax
mov dword [0x5bcb80], eax
xor eax, eax
mov dword [0x5bcb88], eax
ret
Function at 0x43c32c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405a28
xor eax, eax
push ebp
push 0x43c389
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405a38
mov esi, eax
push esi
call sub.wsock32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43c373
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x43c373
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c390
lea eax, [ebp - 4]
call fcn.004055a8
ret
Function at 0x43ca5c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00405a28
xor eax, eax
push ebp
push 0x43cae1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor esi, esi
jmp 0x43cabb
mov eax, dword [ebp - 4]
call fcn.00405868
mov ebx, eax
sub ebx, esi
cmp ebx, 0x400
jle 0x43caa1
mov ebx, 0x400
push 0
push ebx
lea eax, [ebp - 4]
call fcn.00405a98
add eax, esi
push eax
push edi
call sub.wsock32.dll_send
test eax, eax
jl 0x43cacb
add esi, ebx
mov eax, dword [ebp - 4]
call fcn.00405868
cmp esi, eax
jl 0x43ca88
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43cae8
lea eax, [ebp - 4]
call fcn.004055a8
ret

Function at 0x43caf4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405a28
xor eax, eax
push ebp
push 0x43cb61
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405a38
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43cb49
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x43cb4b
xor esi, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43cb68
lea eax, [ebp - 4]
call fcn.004055a8
ret

Function at 0x43cd84
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405a28
xor eax, eax
push ebp
push 0x43ce56
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x43ce40
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [esi], eax
cmp dword [esi], 0xffffffff
je 0x43ce40
mov eax, dword [ebp - 4]
call fcn.00405a38
push eax
call sub.wsock32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x43cdf4
mov eax, dword [ebp - 4]
call fcn.00405a38
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x43cdf4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, dword [eax]
cmp edi, 0xffffffff
je 0x43ce40
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov word [ebp - 0x14], 2
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x10]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], edi
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi]
push eax
call sub.wsock32.dll_connect
inc eax
je 0x43ce40
mov bl, 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ce5d
lea eax, [ebp - 4]
call fcn.004055a8
ret