joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008770
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10015698
push 0x1000e816
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x10017018]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14c], eax
push ecx
push str..PhysicalDrive_d
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push esi
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x148], edi
cmp edi, 0xffffffff
je 0x10008922
xor eax, eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x134], esi
push esi
lea ecx, [ebp - 0x150]
push ecx
push 8
lea edx, [ebp - 0x140]
push edx
push 0xc
lea eax, [ebp - 0x138]
push eax
push 0x2d1400
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
call ebx
test eax, eax
jne 0x10008854
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10008922
mov ecx, dword [ebp - 0x13c]
push ecx
call fcn.1000e340
mov esi, eax
mov dword [ebp - 0x144], esi
mov edx, dword [ebp - 0x13c]
push edx
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0x10
push 0
lea eax, [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0x13c]
push ecx
push esi
push 0xc
lea edx, [ebp - 0x138]
push edx
push 0x2d1400
push edi
call ebx
test eax, eax
jne 0x100088b3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x10008922
mov eax, dword [esi + 0x18]
test eax, eax
je 0x100088a0
mov dword [ebp - 4], 0
add eax, esi
push eax
push 0x100
mov eax, dword [ebp - 0x14c]
push eax
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x10008924
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1000e352
mov esp, ebp
pop ebp
ret
Function at 0x1000b0d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000f0b6
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x10017018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dx, word [0x10014c3c]
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x620]
mov esi, ecx
mov ecx, dword [0x10014c38]
push eax
push 0x3ff
mov dword [ebp - 0x660], esi
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], dx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1000b2f8
lea ebx, [ebp - 0x620]
xor edi, edi
jmp 0x1000b150
mov cx, word [ebx]
push 0x104
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x18], cx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1000b206
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x628], 7
mov dword [ebp - 0x62c], edi
mov word [ebp - 0x63c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000b193
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x63c]
call fcn.1000c0b0
lea eax, [ebp - 0x220]
mov dword [ebp - 4], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000b1c0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x63c]
push eax
call fcn.1000b940
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000b225
mov dword [ebp - 4], eax
cmp dword [ebp - 0x628], 8
jb 0x1000b206
mov ecx, dword [ebp - 0x63c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dx, word [ebx]
add ebx, 2
test dx, dx
jne 0x1000b206
cmp word [ebx], di
je 0x1000b2f8
mov esi, dword [ebp - 0x660]
jmp 0x1000b150
xor eax, eax
mov word [ebp - 0x658], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x644], 7
mov dword [ebp - 0x648], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000b247
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x658]
call fcn.1000c0b0
mov eax, ebx
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000b271
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x648]
push ebx
inc eax
push esi
lea ecx, [ebp - 0x63c]
call fcn.1000b7b0
mov esi, 8
cmp dword [ebp - 0x644], esi
jb 0x1000b2b2
mov ecx, dword [ebp - 0x658]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x63c]
cmp dword [ebp - 0x628], esi
jae 0x1000b2c6
lea eax, [ebp - 0x63c]
mov edx, dword [ebp - 0x65c]
push eax
push 0x104
push edx
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
cmp dword [ebp - 0x628], esi
jb 0x1000b2f4
mov eax, dword [ebp - 0x63c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
jmp 0x1000b2fa
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000e352
mov esp, ebp
pop ebp
ret
Function at 0x1000b460
Capabilities:
Create thread
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x100
push 0
push 0x10122118
mov esi, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x10013f60]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10122118], cl
inc eax
cmp eax, 0x100
jb 0x1000b480
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push 1
push eax
push 0x10122118
push 0
mov ecx, 0x101174c0
call fcn.100052a0
mov eax, dword [0x1011c544]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.USER32.dll_UnregisterClassA]
add esp, 0x14
test eax, eax
je 0x1000b4f0
push 0
push 0
push 0x10
push eax
call edi
mov ecx, dword [0x1011cc94]
mov edx, dword [str.SPLASH]
push ecx
push edx
mov dword [0x1011c544], 0
call ebx
mov eax, dword [0x1011c66c]
test eax, eax
je 0x1000b51b
push 0
push 0
push 0x10
push eax
call edi
mov eax, dword [0x1011cc94]
mov ecx, dword [str.SPLASH]
push eax
push ecx
mov dword [0x1011c66c], 0
call ebx
mov eax, dword [0x1011c794]
test eax, eax
je 0x1000b546
push 0
push 0
push 0x10
push eax
call edi
mov edx, dword [0x1011cc94]
mov eax, dword [str.SPLASH]
push edx
push eax
mov dword [0x1011c794], 0
call ebx
mov eax, dword [ebp + 8]
sub eax, 0
je 0x1000b56c
dec eax
je 0x1000b560
dec eax
jne 0x1000b578
mov eax, 0x6a
mov ecx, 0x2828b9
jmp 0x1000b57e
mov eax, 0x69
mov ecx, 0xf6496
jmp 0x1000b57e
mov eax, 0x67
mov ecx, 0xc8c8c8
jmp 0x1000b57e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
push ecx
push eax
mov eax, dword [ebp + 0xc]
call fcn.1000abe0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push esi
push 0x1000b3c0
push 0
push 0
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x1000b5ff
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 8], 0
je 0x1000b5ff
mov eax, dword [esi + 4]
test eax, eax
je 0x1000b5fa
push 0
push 0
push 0x10
push eax
call edi
mov eax, dword [0x1011cc94]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
mov dword [esi + 4], 0
call ebx
call fcn.1000b030
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1000b6d0
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x100
push 0
push 0x10122118
mov esi, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
shl esi, 8
lea ecx, [esi + 0x10011560]
pop esi
mov dl, byte [ecx + eax]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10122118], dl
inc eax
cmp eax, 0x100
jb 0x1000b6f3
mov eax, 0x10122118
ret
Function at 0x404178
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
call 0xe99dc9ce
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.00403e1d
call dword [eax + 0x56]

Function at 0x404200
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00403e1d
push eax
push esi
push dword [ebp + 8]
call fcn.00403dd2
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00403e1d
push eax
push esi
push dword [ebp + 8]
call fcn.00403dd2
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00403e0d
xor al, 0x5d
out 0xe2, al
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.00403e0d
fidiv dword [bp + si + 0x3a]
lea eax, [ebp - 0x84]
push eax
call fcn.00403e1d
push eax
push esi
push dword [ebp + 8]
call fcn.00403dd2
add esp, 0x10
mov dword [ebp - 0xc0], eax
push 0x40
push 0x1000
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x404606
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.00403d7e
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x40437d
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.00403d7e
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x40434a
call fcn.00403e0d
invalid
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4044ad
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4044c1
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4044bc
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x4044a6
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4044ae
cmp edx, ebx
jne 0x4045fc
invalid
add byte [ebx + 0x45830448], cl
or byte [edx], al
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x40447d
add eax, dword [eax + 4]
jmp 0x40446a
mov dword [ebp + 0xc], ebx
jmp 0x4044cc
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4044e4
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x404502
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x404560
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x404547
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x404550
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40455a
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40453c
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4044c6
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4045ad
dec eax
je 0x4045a4
sub eax, 3
je 0x40459b
mov dword [ebp - 4], 0x40
jmp 0x4045ca
mov dword [ebp - 4], 4
jmp 0x4045b0
mov dword [ebp - 4], 0x20
jmp 0x4045b0
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
mov ch, 0x54
invalid
invalid
invalid
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4045fc
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40457c
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00403e0d
invalid
push 0x8000
push ebx
push esi
call dword [ebp - 8]
Function at 0x40463a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00403e1d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00403dd2
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
test dword [eax - 4], eax
invalid
jmp dword [ecx]
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
Function at 0x40528f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.00403e0d
sub al, 0xed
mov cl, 0xd4
lea eax, [ebp - 0x72c]
push eax
call fcn.00403e1d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00403dd2
add esp, 0xc
mov dword [ebp - 0x6e4], eax
call fcn.00403e0d
mov bh, 0x17
out 0x5a, al
lea eax, [ebp - 0x718]
push eax
push 0x40
push 5
push dword [ebp - 0x3a8]
call dword [ebp - 0x6e4]
push 5
lea eax, [ebp - 0x394]
push eax
push dword [ebp - 0x3a8]
call fcn.00403d7e
add esp, 0xc
lea eax, [ebp - 0x718]
push eax
push dword [ebp - 0x718]
push 5
push dword [ebp - 0x3a8]
call dword [ebp - 0x6e4]
call fcn.00403e0d
cld
imul ecx, dword [edi], 0xa583ea
stc
invalid
Function at 0x40cf3c
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
xor eax, eax
push eax
movzx ecx, cx
push ecx
push 0x40ce96
push eax
push eax
mov byte [0x4833b0], 1
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ecx
ret

Function at 0x40d11d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
lea eax, [ebp - 0x208]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea eax, [ebp - 0x410]
push eax
push 0
push 0x462890
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
test eax, eax
jne 0x40d17a
call sub.MSVCRT.dll_rand
push eax
call sub.MSVCRT.dll_rand
push eax
push str.c:_u_u.tmp
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.0042e92c
add esp, 0x14
lea ecx, [ebp - 0x410]
call fcn.004350be
pop esi
leave
ret
Function at 0x4102af
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
jne 0x4102b7
xor al, al
jmp 0x4102d2
xor eax, eax
push esi
mov esi, dword [esp + 8]
mov edx, eax
xor edx, 3
mov dl, byte [edx + ecx]
mov byte [eax + esi], dl
inc eax
cmp eax, 0x14
jne 0x4102ba
mov al, 1
pop esi
ret 4

Function at 0x4102d5
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov edx, dword [esp + 8]
mov ecx, eax
xor ecx, 3
mov cl, byte [ecx + edx]
mov edx, dword [esp + 4]
mov byte [eax + edx], cl
inc eax
cmp eax, 0x14
jne 0x4102d7
ret 8

Function at 0x412a5a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x412aa4
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
test eax, eax
je 0x412aa0
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffffffffffffff9d
push 0xffffffffffffff9d
push 0x172
call esi
push eax
push str.IO_Error:_d_line:_d_align:_d_pos:_Ld_count:_d_actual:_d
call fcn.0045c3cd
add esp, 0x20
call esi
jmp 0x412ad4
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
jae 0x412ad2
push eax
push dword [ebp + 0xc]
mov esi, 0x490
push 0xffffffffffffffff
push 0xffffffffffffff9d
push 0xffffffffffffff9d
push 0x176
push esi
push str.IO_Error:_d_line:_d_align:_d_pos:_Ld_count:_d_actual:_d
call fcn.0045c3cd
add esp, 0x20
mov eax, esi
jmp 0x412ad4
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x414dbb
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [edi + 0x10]
push ebx
xor ebx, ebx
lea eax, [edi + 0x2c]
mov dword [eax], ebx
push esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
mov byte [ebp - 1], bl
mov dword [ebp - 0xc], ebx
cmp dword [ecx + 8], ebx
je 0x414ebd
mov dword [ebp - 8], ebx
mov esi, dword [ecx]
add esi, dword [ebp - 8]
test byte [esi + 0x1d], 4
je 0x414e59
cmp byte [esi + 0x1c], bl
je 0x414e97
push dword [esi + 4]
mov ecx, dword [edi + 0x10]
push dword [esi]
add ecx, 0x28
push dword [esi + 0xc]
push dword [esi + 8]
push ebx
call fcn.00414c50
cmp eax, 0xffffffff
jne 0x414e4b
push ebx
push 1
push ebx
push dword [ebp - 0x10]
mov eax, esi
push dword [edi + 0x10]
push 1
call fcn.00412bfc
cmp eax, 0xffffffff
je 0x414ed7
push dword [esi + 4]
mov eax, dword [esi + 0x20]
push dword [esi]
mov ecx, dword [edi + 0x10]
push dword [esi + 0xc]
add ecx, 0x28
push dword [esi + 8]
push eax
call fcn.00414c50
cmp eax, ebx
jne 0x414edb
and byte [esi + 0x1d], 0xfb
jmp 0x414e97
cmp byte [esi + 0x1c], bl
jne 0x414e97
cmp byte [0x4825a6], bl
je 0x414e97
push ebx
push 1
push 1
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x10]
mov eax, esi
push ebx
call fcn.00412bfc
cmp eax, 0xffffffff
jne 0x414ea2
mov eax, dword [ebp - 0x14]
cmp eax, 0xdf
je 0x414e93
cmp eax, 2
je 0x414e93
cmp eax, 3
jne 0x414edb
or byte [esi + 0x1d], 4
mov al, byte [esi + 0x1d]
shr al, 2
and al, 1
or byte [ebp - 1], al
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], 0x24
cmp eax, dword [ecx + 8]
jne 0x414de5
cmp byte [ebp - 1], bl
jne 0x414ed7
mov ecx, dword [edi + 0x10]
add ecx, 0x28
call fcn.00435668
mov ecx, dword [edi + 0x10]
call fcn.00416a1d
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x414ed7
Function at 0x41537e
Capabilities:
Create thread
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov ebx, ecx
mov esi, str.kernel32
mov edx, str.TryEnterCriticalSection
mov ecx, esi
call fcn.00435c3b
mov edx, str.SetFileValidData
mov ecx, esi
mov dword [0x48254c], eax
call fcn.00435c3b
xor esi, esi
mov dword [0x482548], eax
cmp eax, esi
je 0x4153c7
push 2
pop edx
mov ecx, str.SeManageVolumePrivilege
call fcn.00435f88
mov byte [0x482570], al
push edi
push esi
push esi
push esi
push esi
mov dword [0x48258c], esi
mov dword [0x482590], 0x48258c
mov dword [0x48259c], esi
mov dword [0x4825a0], 0x48259c
mov dword [0x482594], esi
mov dword [0x482598], 0x482594
mov dword [0x482584], esi
mov dword [0x482588], 0x482584
mov dword [0x48256c], esi
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov edi, dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
push 0x482550
mov dword [0x482568], eax
call edi
push 0x482e50
call edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
pop edi
cmp eax, 0x8000000
jae 0x41544d
mov ecx, 0x800000
jmp 0x41545b
shr eax, 4
mov ecx, 0x2000000
cmp eax, ecx
jae 0x41545b
mov ecx, eax
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x415370
push esi
push esi
mov dword [0x482574], ecx
mov byte [ebx], 1
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret

Function at 0x415562
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
push dword [ebp + 8]
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4155db
cmp word [ebx + 8], 2
jne 0x4155b8
cmp word [ebx + 0xa], 4
jne 0x4155b8
mov esi, dword [ebx + 0xc]
jmp 0x4155b2
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004154fb
mov dword [edi], eax
test eax, eax
je 0x4155d6
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x415596
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call sub.MSVCRT.dll_strncpy
add esp, 0xc
mov byte [esi + 0x400], 0
xor eax, eax
jmp 0x415601
push 8
pop eax
jmp 0x415601
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x415601
dec ecx
je 0x4155fc
dec ecx
je 0x4155f5
dec ecx
jmp 0x415601
mov eax, 0x2afb
jmp 0x415601
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18