joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032d8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.0040248c
cmp dword [ebp - 0x10], 0
jg 0x403309
push 0
lea ecx, [ebp - 0x18]
call fcn.00401112
movzx eax, word [esi + ebx*2 - 2]
mov edi, dword [ebp - 0x18]
cmp ax, 0x5c
je 0x40331d
cmp ax, 0x2f
jne 0x403328
xor eax, eax
mov word [edi + ebx*2 - 2], ax
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x40334f
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x403341
cmp ax, 0x5c
je 0x403341
dec esi
test esi, esi
jg 0x40332c
test esi, esi
je 0x403400
xor eax, eax
mov word [edi + esi*2], ax
push edi
call fcn.00401951
pop ecx
test eax, eax
je 0x40333d
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x403386
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00402f9e
pop ecx
pop ecx
test eax, eax
je 0x403386
xor esi, esi
jmp 0x403425
push edi
call fcn.00401951
pop ecx
test eax, eax
jne 0x4033a0
push edi
push 0xc
push 1
call fcn.00407784
add esp, 0xc
jmp 0x40337f
cmp esi, ebx
jge 0x4033f4
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x4033d8
jmp 0x4033d7
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x4033de
cmp ax, 0x2f
je 0x4033de
inc esi
cmp word [edi + esi*2], cx
jne 0x4033c7
xor eax, eax
push edi
mov word [edi + esi*2], ax
call fcn.00401951
pop ecx
test eax, eax
je 0x403391
cmp esi, dword [ebp - 4]
jl 0x4033a4
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x403445
mov ecx, dword [ebp + 8]
cmp ebx, 2
jne 0x403430
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x403430
cmp ax, 0x7a
ja 0x403430
cmp word [ecx + 2], 0x3a
jne 0x403430
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x403445
push ecx
push 0xc
push 1
call fcn.00407784
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f2b
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.004013fd
push 2
mov ecx, esi
call fcn.004021dd
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
xor edx, edx
mov word [ecx], dx
and dword [esi + 4], edx
test eax, eax
jbe 0x403f7f
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.004021dd
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.004010fe
pop ecx
xor ecx, ecx
mov word [edi + eax*2], cx
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.004021dd
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi]
push edi
call fcn.004010fe
xor ecx, ecx
add esp, 0x10
mov word [edi + eax*2], cx
push dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403fd5
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x403f8f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x403fdc
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41738c], esi
jle 0x404030
mov eax, dword [0x417390]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.004012df
lea eax, [ebp - 0xc]
push eax
call fcn.00403b1c
mov eax, dword [0x417390]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x41738c]
pop ecx
jl 0x403fed
pop esi
leave
ret
Function at 0x4043b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
call fcn.00401f2d
push 3
call fcn.00401f88
push 0x28
mov dword [0x417784], eax
call fcn.00401f88
push 2
mov dword [0x417780], eax
call fcn.00401f88
push 5
mov dword [0x41777c], eax
call fcn.00401f88
push 0x15
mov dword [0x417778], eax
call fcn.00401f88
push 0x16
mov dword [0x417774], eax
call fcn.00401f88
push 0x17
mov dword [0x417770], eax
call fcn.00401f88
add esp, 0x1c
xor ebx, ebx
mov dword [0x41776c], eax
mov dword [0x417764], ebx
mov dword [0x417768], ebx
mov edi, 0x417384
xor esi, esi
push esi
push ebx
lea eax, [ebp - 0x2a4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4044dc
push ebx
lea eax, [ebp - 0x98]
push 0x41483c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.004013fd
lea ecx, [ebp - 0xc]
call fcn.004013fd
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401311
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401311
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00402ef0
cmp dword [esi + 0x41735c], ebx
jne 0x4044cc
push dword [esi + 0x417360]
lea ecx, [ebp - 0x18]
call fcn.00401311
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401311
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00402ef0
add esi, 8
cmp esi, 0x28
jb 0x40449c
lea ecx, [ebp - 0x18]
call fcn.00401a52
inc ebx
cmp ebx, 0x40
jl 0x404433
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404ab2
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x34
cmp word [eax + 2], 0x3a
push ebx
jne 0x404c6c
movzx ecx, word [eax + 4]
cmp cx, 0x5c
je 0x404adb
cmp cx, 0x2f
jne 0x404c6c
mov ax, word [eax]
push 0x3a
mov word [ebp - 0x10], ax
pop eax
mov word [ebp - 0xe], ax
push 0x5c
pop eax
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x404b0d
push dword [ebp + 8]
jmp 0x404c6d
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00403f2b
pop ecx
pop ecx
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x404c34
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.004013fd
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00401311
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.004024c5
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013ce
mov esi, 0x4148c8
push esi
lea ecx, [ebp - 0x1c]
call fcn.004024c5
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.004024c5
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013ce
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.004024c5
push edi
lea ecx, [ebp - 0x1c]
call fcn.004024c5
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013ce
push esi
lea ecx, [ebp - 0x1c]
call fcn.004024c5
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004026ef
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp esi, ebx
pop esi
je 0x404c47
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x404c47
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x404c72
push dword [ebp - 0x28]
call fcn.00402c04
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x404c73
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
leave
ret
Function at 0x40651d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.004064df
add esp, 0x1c
leave
ret
Function at 0x40868b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x408693
mov dword [ecx*4 + 0x417960], eax
inc ecx
cmp ecx, 0x100
jb 0x40868e
mov edx, 0x800
jmp 0x4086e0
mov eax, dword [ecx*4 + 0x417560]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x417960]
inc ecx
mov dword [ecx*4 + 0x41795c], eax
cmp ecx, edx
jb 0x4086bf
mov dword [0x417820], 0x412660
call fcn.0040d879
pop esi
test eax, eax
jne 0x408702
mov dword [0x417820], 0x412580
ret
Function at 0x40da18
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40da3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40da3e
xor al, al
jmp 0x40da5e
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00412340
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x4119f1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x411a0a
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], ecx
lea edi, [eax + esi]
jmp 0x411a2d
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x411a32
inc edi
cmp edi, dword [ebp - 4]
jb 0x411a24
mov eax, edi
sub eax, esi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jae 0x411b2a
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x411a89
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x411a5d
cmp cl, 0xff
jne 0x411ab4
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x18], 0
je 0x411ac2
lea ebx, [esi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x411ac9
dec ecx
shl edx, cl
and edx, 7
je 0x411a4e
movzx ecx, byte [edx + 0x414fc0]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x414fb8], 0
mov cl, byte [ebx + 4]
je 0x411ab1
test cl, cl
je 0x411ab1
cmp cl, 0xff
jne 0x411a4e
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x411a1f
sub esi, eax
sub esi, dword [ebp + 0x10]
mov ebx, esi
test edx, edx
je 0x411afd
movzx esi, byte [edx + 0x414fc0]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x411ae8
cmp al, 0xff
jne 0x411afa
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x411a7b
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x411a1f
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x4035ab
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x403600
push dword [esp + 0x10]
push 0x40352a
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0xa19f80]
test esi, esi
je 0x403659
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4035f8
cmp byte [esi + 0x10], 0
je 0x4035f8
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4035d4
jmp 0x403659
mov esi, dword [0xa19f80]
test esi, esi
je 0x403659
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x403652
cmp byte [esi + 0x11], 0
je 0x40362e
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x403645
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0xa19f80
call fcn.0040ef7f
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40360d
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x403cf0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0xa19f8c], 0
jne 0x403cfe
call fcn.00403c90
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0xa19f90]
call esi
test eax, eax
jne 0x403d21
call fcn.00403c90
push dword [0xa19f90]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x403d30
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x403d90
mov ebx, 0x10
test edi, edi
jns 0x403d99
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x403d62
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x403db0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0xa19f8c], 0
jne 0x403dbe
call fcn.00403c90
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0xa19f90]
call esi
mov edx, eax
test edx, edx
jne 0x403de5
call fcn.00403c90
push dword [0xa19f90]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x403e18
mov ebx, 0x10
test esi, esi
jns 0x403e21
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x403e30
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x404468
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4044f2
cmp dword [ebp + 0xc], edi
je 0x4044f2
push esi
push 0x28
push 8
push dword [0xa19ed8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
pop ecx
pop ecx
test al, 1
je 0x4044e1
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x4045f6
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4044d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x4044f1
push esi
call fcn.00404647
jmp 0x4044f0
push esi
call fcn.0040450b
push esi
mov edi, eax
call fcn.00404647
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0xc
Function at 0x40450b
Capabilities:
Delete file

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov eax, dword [esi + 8]
mov ebp, dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
call fcn.004273d0
mov edi, eax
test edi, edi
je 0x4045db
push dword [esp + 0x18]
call fcn.0044c5b0
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4045cb
test byte [esi + 0x1c], 2
mov dword [esi + 0x10], ebp
jne 0x404574
push 1
push 0x34
push edi
call fcn.00427460
add esp, 0xc
push dword [esp + 0x18]
push 0x2712
push edi
call fcn.00427460
push 0x404605
push 0x4e2b
push edi
call fcn.00427460
push esi
push 0x2711
push edi
call fcn.00427460
push edi
call fcn.00427450
add esp, 0x28
test eax, eax
jne 0x4045b6
xor ebx, ebx
mov dword [esi + 4], 0xfffffffe
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4045cb
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x18]
call fcn.0044c5a0
push edi
call fcn.004273b0
pop ecx
cmp dword [esi + 4], 0xfffffffe
je 0x4045ee
cmp dword [esi + 4], 0xfffffffc
je 0x4045ee
mov dword [esi + 4], 0xfffffffd
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x40472c
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0xa19fb8], 0
jne 0x404758
push 0x40467b
push 0x10
push 0x2c
mov dword [0xa19fb8], edi
call fcn.0040e94a
mov dword [0xa19fb4], eax
cmp word [0xa19fac], 0
jne 0x4047f4
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x404783
mov word [0xa19fac], di
jmp 0x40478b
xor eax, eax
mov word [0xa19fac], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0xa19fc8], eax
test eax, eax
je 0x4047f4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x454038
push eax
call esi
push 0x454044
push dword [0xa19fc8]
mov dword [0xa19fbc], eax
call esi
push str.getnameinfo
push dword [0xa19fc8]
mov dword [0xa19fc0], eax
call esi
cmp dword [0xa19fbc], 0
mov dword [0xa19fc4], eax
pop esi
je 0x4047f4
cmp dword [0xa19fc0], 0
je 0x4047f4
test eax, eax
je 0x4047f4
mov dword [0xa19fb0], edi
movsx eax, word [0xa19fac]
pop edi
add esp, 0x190
ret
Function at 0x407a90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x407acc
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x407e50
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x407eb5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x407ead
push dword [esp + 0x10]
push dword [0xa1a86c]
call fcn.0040e877
test eax, eax
je 0x407ea3
cmp dword [eax + 4], 0
je 0x407e92
push edi
push esi
push eax
call fcn.00408420
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x407f70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0xa19ed8]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4080f4
mov cl, byte [esp + 3]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x407fbe
test ebp, ebp
je 0x408060
dec ebp
cmp dword [ebx + 4], 0
je 0x407fd7
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00408530
mov dword [esp + 0x14], eax
jmp 0x407ff1
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
cmp eax, 1
jne 0x408060
test cl, cl
je 0x408005
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x20]
dec eax
sub edi, edx
cmp edi, eax
jle 0x408040
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0xa19ed8]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x20], edx
lea esi, [edi + edx]
test cl, cl
je 0x408060
cmp dword [esp + 0x2c], 0
jne 0x407fb0
cmp cl, 0xd
je 0x408067
cmp cl, 0xa
jne 0x407fb0
dec esi
jmp 0x4080d7
cmp dword [esp + 0x2c], 0
jne 0x4080d7
cmp cl, 0xa
jne 0x40806f
dec esi
jmp 0x4080d7
cmp cl, 0xd
jne 0x4080d7
dec esi
cmp dword [ebx + 4], 0
je 0x40808e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00408530
mov dword [esp + 0x14], eax
jmp 0x4080a4
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x4080d7
cmp dword [ebx + 4], 0
je 0x4080b6
inc dword [ebx + 0xc]
jmp 0x4080d7
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10