joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6a6704
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x6a679d
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi], dl
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push edx
pop edx
mov byte [ebp + edi + 1], dl
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
shl edx, 2
movzx ecx, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push edx
pop edx
mov byte [ebp + edi + 2], dl
movzx edx, byte [esi + ebx + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x6a6723
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x6a67b3
dec edx
je 0x6a67e8
jmp 0x6a6838
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x6a6838
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi + 1], al
movzx eax, byte [esi + ebx + 1]
and al, 0xf
movzx eax, al
shl eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x6a6924
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x6a6943
add edx, 3
sar edx, 2
test edx, edx
jle 0x6a6a50
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x6a6978
je 0x6a69bb
sub ecx, 0x2b
je 0x6a69b1
sub ecx, 4
je 0x6a69b6
dec ecx
sub ecx, 0xa
jb 0x6a69a3
jmp 0x6a69be
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x6a698a
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x6a6995
jmp 0x6a69be
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x6a69be
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x6a69be
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x6a69be
mov byte [eax], 0x3e
jmp 0x6a69be
mov byte [eax], 0x3f
jmp 0x6a69be
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x6a695b
movzx eax, byte [esp + 4]
shl eax, 2
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x6a6a0e
cmp byte [esp + 7], 0xff
jne 0x6a6a0e
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x6a6a45
cmp dl, 0xff
je 0x6a6a45
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x6a6952
add esp, 0x10
pop ebp
pop edi
pop esi
ret

Function at 0x6a902c
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, eax
mov edi, edx
mov edx, ecx
dec edx
test edx, edx
jb 0x6a9047
inc edx
xor eax, eax
movzx ecx, byte [edi + eax]
xor byte [esi + eax], cl
inc eax
dec edx
jne 0x6a903c
pop edi
pop esi
ret

Function at 0x6ab778
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
movzx ebx, dl
dec ebx
test ebx, ebx
jb 0x6ab7c1
inc ebx
xor edx, edx
mov ecx, edx
shl ecx, 2
movzx esi, byte [eax + ecx]
mov esi, dword [esi*4 + 0x7337fc]
movzx edi, byte [eax + ecx + 1]
xor esi, dword [edi*4 + 0x733bfc]
movzx edi, byte [eax + ecx + 2]
xor esi, dword [edi*4 + 0x733ffc]
movzx edi, byte [eax + ecx + 3]
xor esi, dword [edi*4 + 0x7343fc]
mov dword [eax + ecx], esi
inc edx
dec ebx
jne 0x6ab786
pop edi
pop esi
pop ebx
ret
Function at 0x6ae7e8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov ebx, edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x6ae9b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 4], 1
mov edi, 0xff
mov esi, 0xff
mov eax, edi
call fcn.0040725c
mov dword [ebp - 8], eax
mov eax, esi
call fcn.0040725c
mov dword [ebp - 0xc], eax
mov eax, 4
call fcn.0040725c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x6ae98d
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
movzx edx, word [ebp - 2]
call fcn.0040c358
lea eax, [ebp - 0x18]
mov edx, 0x6ae9d0
call fcn.0040c544
mov eax, dword [ebp - 0x18]
call fcn.0040c338
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
jne 0x6ae897
call fcn.0040ac2c
jmp 0x6ae994
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.0040c398
lea eax, [ebx + 4]
mov edx, dword [ebp - 8]
call fcn.0040c398
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
xor edx, edx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov byte [ebx + 0x14], 0
test byte [ebp - 0x14], 1
je 0x6ae8cd
movzx eax, byte [0x6ae9d8]
or byte [ebx + 0x14], al
test byte [ebp - 0x14], 2
je 0x6ae8dd
movzx eax, byte [0x6ae9dc]
or byte [ebx + 0x14], al
test byte [ebp - 0x14], 4
je 0x6ae8ed
movzx eax, byte [0x6ae9e0]
or byte [ebx + 0x14], al
test byte [ebp - 0x14], 8
je 0x6ae8fd
movzx eax, byte [0x6ae9e4]
or byte [ebx + 0x14], al
test byte [ebp - 0x14], 0x10
je 0x6ae90d
movzx eax, byte [0x6ae9e8]
or byte [ebx + 0x14], al
test byte [ebp - 0x13], 0x80
je 0x6ae91d
movzx eax, byte [0x6ae9ec]
or byte [ebx + 0x14], al
lea eax, [ebx + 0x20]
push eax
lea eax, [ebx + 0x18]
push eax
lea eax, [ebx + 0x28]
push eax
lea eax, [ebp - 0x1c]
movzx edx, word [ebp - 2]
call fcn.0040c358
lea eax, [ebp - 0x1c]
mov edx, 0x6ae9d0
call fcn.0040c544
mov eax, dword [ebp - 0x1c]
call fcn.0040c338
push eax
mov eax, dword [0x7378e0]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x6ae95f
call fcn.0040ac2c
jmp 0x6ae994
mov word [ebp - 4], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6ae994
mov eax, dword [ebp - 8]
call fcn.00407278
mov eax, dword [ebp - 0xc]
call fcn.00407278
mov eax, dword [ebp - 0x10]
call fcn.00407278
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6ae9b8
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040b51c
pop eax
jmp eax
Function at 0x6ae9f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040b5b0
xor eax, eax
push ebp
push 0x6aeb7d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x6aea29
lea edx, [ebp - 8]
xor eax, eax
call fcn.00407ae8
jmp 0x6aea34
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040b8f4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
call fcn.0040c338
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x6aeb60
mov eax, dword [ebp - 0x14]
call fcn.00407228
mov ebx, eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoW
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x6aeb94
push ebx
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x6aeb56
mov esi, dword [ebp - 0x24]
lea edi, [ebp - 0x58]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x50]
mov eax, esi
and eax, 0xffff0000
shr eax, 0x10
xor edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
push 0
push 0x3b9aca00
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
call fcn.0040e044
add eax, dword [ebp - 0x10]
adc edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, esi
and eax, 0xffff
xor edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
push 0
push 0x989680
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
call fcn.0040e044
add eax, dword [ebp - 0x10]
adc edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov esi, dword [ebp - 0x4c]
mov eax, esi
and eax, 0xffff0000
shr eax, 0x10
xor edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
push 0
push 0x186a0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
call fcn.0040e044
add eax, dword [ebp - 0x10]
adc edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, esi
and eax, 0xffff
xor edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add eax, dword [ebp - 0x20]
adc edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00407278
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6aeb84
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b51c
pop eax
jmp eax
Function at 0x6d55d0
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffdc
mov ebx, eax
mov eax, ebx
call fcn.0040b4bc
mov dword [esp], 0xf
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x6d5601
lea edx, [esp + 4]
mov eax, ebx
mov ecx, dword [esp]
call fcn.0040b654
add esp, 0x24
pop ebx
ret
Function at 0x10001b77
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1000e018
call fcn.1000dd50
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x10001bf4
push 2
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x10001bf4
call fcn.1000127b
mov esi, eax
jmp 0x10001cfa
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x10001c17
call fcn.1000127b
jmp 0x10001ced
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x10001c0d
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x10001c4a
mov esi, 0x8007000e
jmp 0x10001cef
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x10001d28
jb 0x10001c65
cmp eax, 0xffffffff
ja 0x10001d28
cmp eax, 0x400
jbe 0x10001c7a
push eax
lea ecx, [ebp - 0x418]
call fcn.10009071
jmp 0x10001c9c
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x10001c9c
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x10001c40
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x10001c0d
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.10009071
mov esi, eax
test edi, edi
je 0x10001cfa
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10001d13
lea ecx, [ebp - 0x418]
call fcn.10004013
lea ecx, [ebp - 0x428]
call fcn.10003e34
mov eax, esi
call fcn.1000dca1
ret 0x10
push 0x80070216
call fcn.10009071
int3
Function at 0x10004775
Capabilities:
Parse url

Disassembly:
push 0x4c
mov eax, 0x1000e30d
call fcn.1000dcae
mov dword [ebp - 0x1c], ecx
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x58]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x58], esi
test ebx, ebx
jne 0x100047a6
mov dword [ebp - 0x10], edi
jmp 0x100047af
push ebx
lea ecx, [ebp - 0x10]
call fcn.10009071
push 5
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push ebx
call edi
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10004908
push 6
push ebx
mov byte [ebp - 4], 1
call edi
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x10004908
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.10004abb
mov ebx, eax
test ebx, ebx
js 0x100048ed
lea ecx, [ebp - 0x18]
call fcn.10004abb
mov ebx, eax
test ebx, ebx
js 0x100048ed
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x40], 0
je 0x100048e8
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
call ebx
cmp eax, 0x8000
ja 0x100048e8
push dword [ebp - 0x10]
call ebx
cmp eax, 6
jb 0x100048e8
lea ecx, [ebp - 0x10]
call fcn.10004abb
mov ebx, eax
test ebx, ebx
js 0x100048ed
push str.http:
lea ecx, [ebp - 0x14]
call fcn.10009071
test al, al
je 0x1000486d
push str.https:
lea ecx, [ebp - 0x18]
call fcn.10009071
test al, al
jne 0x100048e8
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x18], eax
movzx eax, word [eax]
test ax, ax
je 0x100048e8
mov ecx, eax
cmp cx, 0xd
je 0x100048e8
cmp cx, 0xa
je 0x100048e8
mov dword [ebp - 0x1c], 0x2f
lea eax, [edx + 1]
cmp word [ebp - 0x1c], cx
cmovne eax, edx
mov edx, eax
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
movzx eax, word [eax]
mov ecx, eax
test ax, ax
jne 0x1000487f
cmp edx, 3
jb 0x100048e8
push dword [ebp - 0x10]
xor eax, eax
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x50], eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea ecx, [ebp - 0x58]
push ecx
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x100048ed
mov ebx, 0x80070057
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push esi
call edi
push dword [ebp - 0x10]
call edi
mov eax, ebx
call fcn.1000dc7f
ret 4
push 0x8007000e
call fcn.10009071
int3
Function at 0x10009071
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10009080
pop dword [ebp - 0x1c]
mov eax, 0x10009080
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3b0ff
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x50a6
mov esi, eax
mov edi, 0x1001c400
add edi, dword [ebp - 0x1c]
mov ebx, 0xa1d9e7cf
sub ebx, 0x6a398ff7
xor dword [ebp - 4], 0xd9478a1d
mov edx, dword [edi]
xor edx, ebx
sub dword [ebp - 4], 0x116b1b6e
mov dword [esi], edx
add esi, 0xdb4076c
sub esi, 0xdb40768
add edi, 0xe4cd2535
sub edi, 0xe4cd2531
loop 0x100090c9
add eax, 0x80a81541
add eax, 0x7f59202a
mov ebx, eax
add eax, 0x24bc46ec
add eax, 0xdb43b919
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x402f22
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x40f054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
push esi
mov edx, ecx
mov dword [ebp - 0x210], eax
mov cl, byte [0x412664]
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 0x214], edx
test cl, cl
je 0x402f5f
add ebx, ebx
jmp 0x402f9c
push ebx
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x402fec
xor esi, esi
push esi
push esi
push ebx
push edi
push ebx
push dword [ebp - 0x210]
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x402fec
mov cl, byte [0x412664]
mov eax, dword [ebp - 0x210]
mov edx, dword [ebp - 0x214]
test cl, cl
jne 0x402fa2
mov eax, edi
push 0
push 0x40f3d8
push ebx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402fef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x20c]
push 0xa
push eax
push esi
call dword [sym.imp.msvcrt.dll__itow]
push 0x55
push 7
call fcn.004063f7
lea eax, [ebp - 0x20c]
push eax
push 0x73
push 7
call fcn.004063f7
add esp, 0x20
jmp 0x402fef
push 8
pop esi
test edi, edi
je 0x402ffb
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e870
leave
ret 4
Function at 0x4049ce
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
xor esi, esi
inc esi
cmp eax, esi
jbe 0x404a34
add eax, 0xfffffffe
xor edx, edx
imul eax, eax, 0x1f4
push 0xa
pop ecx
div ecx
mov edi, eax
add edi, 0x1f4
je 0x404a34
push edi
push 0x40f3dc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
je 0x404a2c
push edi
push 0x40f3fc
mov dword [0x412648], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x404a50
mov esi, dword [0x412644]
jmp 0x404a56
push 0x40f3dc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x40f3fc
mov dword [0x412648], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x412644], esi
cmp dword [0x412648], 0
je 0x404aed
test esi, esi
je 0x404aed
push 0x2ff8
xor esi, esi
push esi
push 0x40f430
call sub.msvcrt.dll_memset
mov eax, 0x40f414
mov edx, 0x40f41c
mov dword [0x40f418], eax
mov ecx, edx
mov dword [0x40f414], eax
add esp, 0xc
mov eax, 0x40f3f4
mov dword [0x40f420], ecx
mov dword [0x40f3f8], eax
mov dword [0x40f3f4], eax
mov eax, 0x40f428
mov dword [0x40f41c], edx
mov dword [eax + 4], eax
mov dword [eax], eax
cmp dword [ecx], edx
jne 0x404ae8
mov dword [eax + 4], ecx
mov dword [eax], edx
mov dword [ecx], eax
mov ecx, eax
add eax, 0x30
mov dword [0x40f420], ecx
cmp eax, 0x412428
jl 0x404ab6
mov dword [0x412640], esi
xor eax, eax
mov dword [0x41263c], esi
jmp 0x404af3
push 3
pop ecx
int 0x29
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
leave
ret

Function at 0x405959
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x401448
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x405991
push 0x401464
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401478
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
jmp 0x405997
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebx, ebx
test edi, edi
je 0x4059af
push ebx
push eax
mov ecx, edi
call dword [0x4142c8]
call edi
test esi, esi
je 0x4059be
push ebx
mov ecx, esi
call dword [0x4142c8]
call esi
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push 1
push ebx
call fcn.00404dae
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40681e
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
test cl, cl
je 0x406839
push 0x1010
jmp 0x40683b
push 0x10
push esi
push esi
push esi
push esi
call dword [sym.imp.logoncli.dll_DsGetDcNameW]
test eax, eax
mov eax, dword [ebp - 4]
jne 0x406863
test eax, eax
je 0x40686e
mov ecx, dword [eax]
test ecx, ecx
je 0x406863
add ecx, 4
call fcn.0040e136
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40686e
push eax
call dword [sym.imp.netutils.dll_NetApiBufferFree]
mov eax, esi
pop esi
leave
ret

Function at 0x40696e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0040ee60
mov eax, dword [0x40f054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 2
mov dword [ebp - 0x2008], edx
mov esi, ecx
call fcn.0040edd9
pop ecx
cmp esi, eax
jne 0x4069a5
push 0xfffffffffffffff4
jmp 0x4069a7
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
test ebx, ebx
je 0x4069e2
push ebx
push dword [ebp - 0x2008]
mov esi, 0xfff
lea eax, [ebp - 0x2004]
push esi
push eax
call dword [sym.imp.msvcrt.dll__vsnwprintf]
add esp, 0x10
test eax, eax
js 0x4069da
cmp eax, esi
ja 0x4069da
jne 0x4069fe
xor eax, eax
mov word [ebp - 6], ax
jmp 0x4069fe
push 0x7ffffffe
push dword [ebp - 0x2008]
mov edx, 0x1000
push ecx
lea ecx, [ebp - 0x2004]
call fcn.00406e08
lea ecx, [ebp - 0x2004]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x406a09
sub ecx, edx
sar ecx, 1
push edi
mov dword [ebp - 0x200c], ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
jne 0x406a5a
lea eax, [ebp - 0x2010]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x406a5a
push esi
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x200c]
lea eax, [ebp - 0x2004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x406ac7
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x2004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
mov dword [ebp - 0x2008], eax
call fcn.0040e524
mov ebx, eax
pop ecx
test ebx, ebx
je 0x406acd
push esi
push esi
push dword [ebp - 0x2008]
lea eax, [ebp - 0x2004]
push ebx
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea eax, [ebp - 0x2014]
push eax
mov eax, dword [ebp - 0x2008]
dec eax
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.0040e553
pop ecx
mov esi, dword [ebp - 0x200c]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e870
leave
ret
Function at 0x40b58c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.0040a931
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040a8e6
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.0040a921
push ss
fst qword [edx + 0x1046868]
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x40b615
cmp dword [ebp - 0x398], 0
je 0x40b7df
cmp dword [ebp + 0xc], 1
je 0x40b7df
cmp dword [ebp + 0xc], 8
jne 0x40b7a7
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
invalid
test dword [ebx - 7], edx