joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408070
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x408077
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x408154
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de68]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x42de68]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x42de68]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de68]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de68]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de68]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de68]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de68]
inc ecx
sub edx, 8
sub esi, 1
jne 0x408090
pop edi
test edx, edx
je 0x40817b
jmp 0x408160
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x42de68]
inc ecx
sub edx, 1
jne 0x408160
not eax
pop esi
ret

Function at 0x408180
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x42de68]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x42de68]
mov dword [edx + 8], ecx
ret

Function at 0x4081d0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x42de68]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x42de68]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x4088e0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x408912
mov ecx, dword [edi + 2]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x408908
mov byte [edi + 6], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x408925
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0xc]
push esi
add eax, ecx
push eax
push edx
call fcn.0041b770
add dword [edi + 0x14], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x408940
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x408973
mov edx, dword [esi + 2]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x40896d
mov byte [esi + 6], 1
mov edi, dword [esp + 8]
jmp 0x40899f
mov eax, dword [esi + 0x10]
push ebx
mov ebx, dword [esi + 0x14]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x408985
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0xc]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.0041b770
add esp, 0xc
add ebx, edi
mov dword [esi + 0x14], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x4089b6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x4089b0
cmp byte [esi + 6], 0
je 0x4089b0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x408a50
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x408a95
cmp byte [esi + 1], 0
je 0x408a9d
mov eax, dword [esi + 2]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x408ab2
cmp byte [esi + 1], 0
je 0x408aa4
mov edx, dword [esi + 2]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 7]
mov dword [esp + 4], ebp
jmp 0x408abb
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], ecx
jmp 0x408a6e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x408abb
mov eax, dword [esi + 0x14]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x408acf
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.004157dc
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x408aed
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x408c01
jmp 0x408b10
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x408b21
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x408b3a
mov ebp, 0x404
cmp byte [esi], 0
je 0x408b5f
cmp byte [esi + 1], 0
je 0x408c01
mov ecx, dword [esi + 7]
mov edx, dword [esi + 2]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x408b62
mov dword [esi + 0x14], eax
cmp byte [esi], 0
mov edi, ebp
je 0x408b8a
mov ecx, dword [esi + 2]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x408b84
mov byte [esi + 6], 1
mov eax, dword [esp + 0x1c]
jmp 0x408bb0
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x408b9b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0xc]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0041b770
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x408c01
lea eax, [ebp - 3]
test eax, eax
jl 0x408bec
dec eax
cmp byte [eax + ebx], 0x50
jne 0x408bdc
cmp byte [eax + ebx + 1], 0x4b
jne 0x408bdc
cmp byte [eax + ebx + 2], 5
jne 0x408bdc
cmp byte [eax + ebx + 3], 6
je 0x408be2
test eax, eax
jge 0x408bc0
jmp 0x408bec
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x408c01
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x408b04
push ebx
call fcn.00415d37
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x409b10
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x409bc3
cmp dword [esi + 4], 0xffffffff
jne 0x409bc3
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
jmp 0x409b40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409b40
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x409b79
cmp ax, 0x2f
je 0x409b79
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x409b66
mov eax, dword [0x42c8b8]
mov dword [edi], eax
push 0x18
call fcn.0040a462
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 4
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0xb], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0
mov dword [eax + 7], 0
call fcn.00408c20
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
ret 8
mov eax, 0x1000000
pop edi
ret 8

Function at 0x4148cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432c20]
jne 0x4148d6
repz ret
jmp fcn.0041918b

Function at 0x423c9f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00419460
and dword [ebp - 4], 0
cmp dword [0x436abc], 0
mov ebx, eax
jne 0x423d50
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x423e01
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x423e01
push eax
call fcn.004193ee
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x436abc], eax
call esi
push eax
call fcn.004193ee
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x436ac0], eax
call esi
push eax
call fcn.004193ee
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x436ac4], eax
call esi
push eax
call fcn.004193ee
pop ecx
mov dword [0x436acc], eax
test eax, eax
je 0x423d50
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004193ee
pop ecx
mov dword [0x436ac8], eax
mov eax, dword [0x436ac8]
cmp eax, ebx
je 0x423da8
cmp dword [0x436acc], ebx
je 0x423da8
push eax
call fcn.00419469
push dword [0x436acc]
mov esi, eax
call fcn.00419469
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x423da8
test edi, edi
je 0x423da8
call esi
test eax, eax
je 0x423d9f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x423d9f
test byte [ebp - 0xc], 1
jne 0x423da8
or dword [ebp + 0x10], 0x200000
jmp 0x423de1
mov eax, dword [0x436ac0]
cmp eax, ebx
je 0x423de1
push eax
call fcn.00419469
pop ecx
test eax, eax
je 0x423de1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x423de1
mov eax, dword [0x436ac4]
cmp eax, ebx
je 0x423de1
push eax
call fcn.00419469
pop ecx
test eax, eax
je 0x423de1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x436abc]
call fcn.00419469
pop ecx
test eax, eax
je 0x423e01
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x423e03
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000102c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push edi
xor ebx, ebx
mov ecx, 0x87
xor eax, eax
lea edi, [ebp - 0x233]
mov byte [ebp - 0x234], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x220
lea eax, [ebp - 0x234]
push edi
push eax
push dword [ebp + 8]
call fcn.10005c1b
add esp, 0xc
test eax, eax
je 0x1000119b
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x134]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x100010a4
mov dword [ebp - 0x34], 1
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x100010ba
mov dword [ebp - 0x34], 1
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
cmp ecx, ebx
jl 0x100010eb
jg 0x100010ca
cmp eax, ebx
jbe 0x100010eb
cmp ecx, dword [ebp - 0x28]
jg 0x100010eb
jl 0x100010d6
cmp eax, dword [ebp - 0x2c]
jae 0x100010eb
push ebx
push ebx
push ecx
push eax
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x24]
sub dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
sbb dword [ebp - 0x28], eax
lea eax, [ebp - 0x234]
push edi
push eax
push dword [ebp + 8]
call fcn.10005bfc
add esp, 0xc
test eax, eax
je 0x10001192
cmp dword [ebp - 0x34], 1
je 0x10001184
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, eax
or edx, ecx
je 0x10001184
cmp ecx, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
jl 0x10001184
jg 0x1000112e
cmp eax, ebx
jbe 0x10001184
cmp dword [ebp - 8], ebx
jl 0x10001145
jg 0x1000113e
cmp dword [ebp - 0xc], 0x7fffffff
jbe 0x10001145
mov edi, closesocket
jmp 0x10001148
mov edi, dword [ebp - 0xc]
push 0x20
push ebx
push ebx
push ebx
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.MSWSOCK.dll_TransmitFile
test eax, eax
je 0x100011ab
xor eax, eax
sub dword [ebp - 0xc], edi
push ebx
push ebx
sbb dword [ebp - 8], eax
add dword [ebp - 0x14], edi
adc dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
jg 0x1000113e
jl 0x10001184
cmp dword [ebp - 0xc], ebx
ja 0x1000112e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10001040
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebx
leave
ret 4
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100011a4

Function at 0x100014d0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x18], eax
call fcn.1000131a
test eax, eax
je 0x100014ff
xor eax, eax
push eax
push eax
push esi
push 0x10001573
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, esi
call fcn.10001409
push 1
pop eax
pop esi
ret 4
Function at 0x10001503
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
xor eax, eax
lea edi, [ebp - 6]
mov word [ebp - 8], si
mov ebx, ecx
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
push 8
push eax
push dword [ebx + 0x18]
call fcn.10005c1b
add esp, 0xc
test eax, eax
je 0x1000156e
cmp byte [ebp - 1], 1
jne 0x10001543
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.1000157f
jmp 0x1000151b
cmp byte [ebp - 1], 2
jne 0x10001556
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.10001662
jmp 0x1000151b
cmp byte [ebp - 1], 3
jne 0x1000151b
push esi
push esi
push esi
push 0x100016c2
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1000151b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000182b
Capabilities:
Create thread
Delete file
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
mov eax, dword [esp + 0xc]
push ebp
push esi
xor ebp, ebp
push edi
mov esi, ecx
push ebp
push ebp
push esi
push 0x1000192f
push ebp
push ebp
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebp
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100018f8
push ebp
push 0x80
push 3
push ebp
push 1
push connect
push 0x1000a6e4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100018de
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebp
mov dword [esp + 0x10], eax
jbe 0x100018cc
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
lea eax, [esp + 0x18]
push ebp
push eax
mov dword [esp + 0x20], ebp
push dword [esp + 0x18]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x18]
push ebx
push dword [esi + 8]
call fcn.10005bfc
add esp, 0xc
test eax, eax
push ebx
je 0x100018eb
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1000a6e4
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x37
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000184b
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x1000193b
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
push 0x200000
mov dword [esi], 0x100072e4
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esi + 0x10], edi
pop ecx
lea edi, [esi + 0x14]
mov dword [esi + 0xc], eax
push edi
push 0xfa
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._08x.tmp
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + esi + 0x14]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, esi
pop edi
pop esi
ret
Function at 0x100019af
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x10]
mov dword [esi], 0x100072e4
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100019cf
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

Function at 0x10001b60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov esi, dword [ebx + 0xc]
push edi
push 0x80
push 3
push edi
push 1
lea eax, [esi + 0x100]
push connect
push eax
mov dword [ebx + 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x10001ba1
mov dword [ebx + 4], 0x1b6d
jmp 0x10001bbe
lea ecx, [ebp - 8]
mov dword [ebp - 8], edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x208], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x20c], eax
push 0x220
push esi
push dword [ebx + 0x10]
call fcn.10005bfc
add esp, 0xc
test eax, eax
je 0x10001c72
cmp dword [ebx + 4], edi
jne 0x10001c72
mov eax, dword [esi + 0x208]
or eax, dword [esi + 0x20c]
je 0x10001c72
mov eax, dword [esi + 0x208]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x20c]
cmp eax, edi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
jl 0x10001c78
jg 0x10001c18
cmp dword [esi + 0x208], edi
jbe 0x10001c78
cmp dword [ebp - 8], edi
jl 0x10001c2f
jg 0x10001c28
cmp dword [ebp - 0xc], 0x7fffffff
jbe 0x10001c2f
mov esi, closesocket
jmp 0x10001c32
mov esi, dword [ebp - 0xc]
push 0x20
push edi
push edi
push edi
push esi
push dword [ebp - 4]
push dword [ebx + 0x10]
call sub.MSWSOCK.dll_TransmitFile
test eax, eax
je 0x10001c78
sub dword [ebp - 0xc], esi
push edi
push edi
sbb dword [ebp - 8], edi
add dword [ebp - 0x14], esi
adc dword [ebp - 0x10], edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp dword [ebp - 8], edi
jg 0x10001c28
jl 0x10001c78
cmp dword [ebp - 0xc], edi
ja 0x10001c18
jmp 0x10001c78
cmp dword [ebp - 4], 0xffffffff
je 0x10001c81
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001c86
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10018
call fcn.10006a40
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push ebx
mov edi, dword [esi + 0xc]
push 0x80
push 2
push ebx
lea eax, [edi + 0x100]
push ebx
push 0x40000000
push eax
mov dword [esi + 4], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x10001cd1
mov dword [esi + 4], 0x1b6e
push 0x220
push edi
push dword [esi + 0x10]
call fcn.10005bfc
add esp, 0xc
test eax, eax
je 0x10001db1
cmp dword [esi + 4], ebx
jne 0x10001db1
mov ecx, 0x3fff
xor eax, eax
lea edi, [ebp - 0x10017]
mov byte [ebp - 0x10018], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x10]
add eax, 0x208
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 4]
cmp ecx, ebx
mov dword [ebp - 8], ecx
jl 0x10001d87
jg 0x10001d27
cmp dword [eax], ebx
jbe 0x10001d87
cmp dword [ebp - 8], ebx
jl 0x10001d3e
jg 0x10001d37
cmp dword [ebp - 0xc], 0xffff
jbe 0x10001d3e
mov edi, 0xffff
jmp 0x10001d41
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x10018]
push edi
push eax
mov dword [ebp - 0x14], ebx
push dword [esi + 0x10]
call fcn.10005c1b
add esp, 0xc
test eax, eax
je 0x10001db7
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x10018]
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10001db7
sub dword [ebp - 0xc], edi
sbb dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
jg 0x10001d37
jl 0x10001d87
cmp dword [ebp - 0xc], ebx
ja 0x10001d27
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x200], ebx
je 0x10001dc0
call fcn.10004bf5
push 5
push ebx
push ebx
push dword [ebp - 0x18]
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x10001dc0
cmp dword [ebp - 4], 0xffffffff
je 0x10001dc0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10001dc5
Capabilities:
Empty the recycle bin

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, 0x124
xor edx, edx
mov ebx, edi
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
div ebx
xor ebp, ebp
test eax, eax
jbe 0x10001e03
lea ebx, [ecx + 0x24]
push 3
push 0x10009300
push ebx
push esi
call fcn.10002be2
mov eax, dword [esi + 8]
xor edx, edx
mov ecx, edi
add ebx, edi
div ecx
inc ebp
cmp ebp, eax
jb 0x10001de5
xor edi, edi
push 7
push edi
push edi
call dword [sym.imp.SHELL32.dll_SHEmptyRecycleBinA]
mov dword [esi + 4], edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10001e17
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10001e32
mov dword [esi + 4], 0x1b68
pop esi
ret
and dword [esi + 4], 0
pop esi
ret
Function at 0x10001e38
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
and byte [ebp - 0x200], 0
push ebx
push esi
push edi
mov ebx, ecx
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x1ff]
and byte [ebp - 0x400], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x3ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebx + 0xc]
push 0x2a
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrA]
mov esi, eax
test esi, esi
jne 0x10001e8f
mov dword [ebx + 4], 0x1b69
jmp 0x10001ed2
and byte [esi], 0
lea eax, [ebp - 0x200]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call edi
inc esi
lea eax, [ebp - 0x400]
push esi
push eax
call edi
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x10001ece
mov dword [ebx + 4], 0x1b67
jmp 0x10001ed2
and dword [ebx + 4], 0
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10001f6a
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
lea eax, [esi + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edi, [esi + 0x10]
lea ebx, [esi + 8]
push edi
push ebx
lea eax, [esi + 0x11c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x10001fb1
mov dword [ebx], eax
mov dword [esi], eax
mov dword [edi], eax
mov dword [ebx + 4], eax
mov dword [esi + 4], eax
mov dword [edi + 4], eax
jmp 0x10001fb3
xor eax, eax
and byte [ebp - 0x1c], 0
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], eax
xor eax, eax
lea edi, [ebp - 0x1b]
push dword [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
push 0x10009038
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, 0x80
lea ecx, [esi + 0x98]
push eax
push ecx
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esi + 0x118], eax
pop edi
pop esi
pop ebx
leave
ret