joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404db8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x542054], 0
je 0x404e19
cmp word [0x542330], 0xd7b2
jne 0x404de1
cmp dword [0x542338], 0
jbe 0x404de1
mov eax, 0x54232c
call dword [0x542348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404e44
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x52f030], 0
jne 0x404e35
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404fe4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x52f034], 0
je 0x40500a
mov edx, esi
mov eax, ebx
call dword [0x52f034]
jmp 0x405019
mov eax, 8
call fcn.00403064
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x542055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404fac
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x40688c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x88
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0xc]
lea esi, [eax + 0xc]
cmp esi, ebx
je 0x4068f7
lea esi, [esi]
Function at 0x45b01e
Capabilities:
Encode data using xor

Disassembly:
jmp 0x471e66
push edi
mov edi, dword [esp + 0x14]
lea ecx, [esp + 8]
call fcn.0045c10d
test eax, eax
je 0x471ef3
push esi
xor esi, esi
cmp dword [esp + 0x1c], esi
jbe 0x471ef2
push ebx
push ebp
mov ebx, 0x45649c
mov ebp, 0x589250
mov al, byte [edi + esi]
xor al, 0x73
push ebx
sub al, 0x6c
xor al, 0x74
push str.Own_head
push ebp
mov byte [edi + esi], al
call fcn.00458d6e
pop ecx
pop ecx
mov ecx, eax
call fcn.0045cccf
mov al, byte [edi + esi]
push ebx
add al, 0x4e
xor al, 0xdc
push str.Earth
push ebp
mov byte [edi + esi], al
call fcn.00458d6e
pop ecx
pop ecx
mov ecx, eax
call fcn.0045cccf
mov al, byte [edi + esi]
xor al, 0xac
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x5165e4
mov byte [edi + esi], al
call fcn.0045818e
xor byte [edi + esi], al
inc esi
pop ecx
cmp esi, dword [esp + 0x24]
jb 0x471e8d
pop ebp
pop ebx
pop esi
lea ecx, [esp + 8]
call fcn.00459b7e
pop edi
ret 0x14

Function at 0x45b933
Capabilities:
Parse pe header

Disassembly:
jmp 0x4a1780
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4a17bf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4a17bf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4a17bf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4a17bf
cmp dword [ecx + 0x74], 0xe
jbe 0x4a17bf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x49f952
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004590fc
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x49f991
sub eax, 1
je 0x49f98c
sub eax, 1
je 0x49f988
xor eax, eax
leave
ret
push 3
jmp 0x49f993
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret
Function at 0x4f6c36
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00457108
mov eax, dword [0x586000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0045c176
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4f6c78
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4f6dd4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0045c2fc
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x58a858]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00458ab7
mov ecx, dword [esi*4 + 0x58a858]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4f6dcd
cmp eax, dword [edi + ecx + 0x24]
jne 0x4f6dcd
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f6dcd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00458ab7
add esp, 0x14
test edx, edx
jl 0x4f6dcd
jg 0x4f6d43
test eax, eax
jb 0x4f6dcd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4f6dcd
jl 0x4f6d5d
cmp dword [ebp - 0x1008], eax
ja 0x4f6dcd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4f6d7b
test ebx, ebx
je 0x4f6db4
cmp ecx, edi
jae 0x4f6db4
mov al, byte [ecx]
cmp al, 0xd
jne 0x4f6d95
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4f6da1
cmp byte [ecx + 1], 0xa
jne 0x4f6da1
inc ecx
jmp 0x4f6da1
movzx eax, al
movsx eax, byte [eax + 0x586370]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4f6d7b
cmp edx, ebx
jne 0x4f6d7b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4f6dd2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045880f
leave
ret
Function at 0x4f6fd9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x58a858]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4f7019
cmp byte [ebx], 0xa
jne 0x4f7019
or byte [eax + edi + 0x28], 4
jmp 0x4f701e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4f711c
mov al, byte [edx]
cmp al, 0x1a
je 0x4f70fe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4f704d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4f7072
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4f707c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4f702f
jmp 0x4f711c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f70f9
cmp dword [ebp - 0xc], 0
je 0x4f70f9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x58a858]
test byte [eax + edi + 0x28], 0x48
je 0x4f70d3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4f70be
mov byte [esi], dl
jmp 0x4f70cf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x58a858]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4f711c
cmp byte [ebp - 1], 0xa
jne 0x4f70e2
cmp esi, ebx
jne 0x4f70e2
mov byte [esi], 0xa
jmp 0x4f711b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00456ba4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4f711c
mov byte [esi], 0xd
jmp 0x4f711b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x58a858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f7118
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f711c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f7178
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x58a858]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4f71bb
cmp word [esi], dx
jne 0x4f71bb
or byte [edi + eax + 0x28], 4
jmp 0x4f71c0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4f7313
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4f72f3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4f7202
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4f7238
cmp eax, edx
jae 0x4f7244
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4f71da
jmp 0x4f7313
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f72ef
cmp dword [ebp - 0x14], 0
je 0x4f72ef
mov eax, dword [ebx*4 + 0x58a858]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4f72c7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4f7290
mov word [esi], cx
jmp 0x4f72c3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x58a858]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x58a858]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x58a858]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4f7313
pop ebx
cmp word [ebp - 4], bx
jne 0x4f72d8
cmp esi, dword [ebp + 0xc]
jne 0x4f72d8
mov word [esi], bx
jmp 0x4f7310
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00456ba4
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4f7313
push 0xd
jmp 0x4f730c
mov ecx, dword [ebx*4 + 0x58a858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f730a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f7313
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10007160
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
jmp 0x1000719f
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x10], ecx
jge 0x100072bb
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x1000722c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jle 0x10007227
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x34]
push eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10007200
xor eax, eax
jmp 0x100072c0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x1000718d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10007140
add esp, 8
test eax, eax
jne 0x1000724d
xor eax, eax
jmp 0x100072c0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x34]
push edx
push 4
push 0x1000
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10007284
xor eax, eax
jmp 0x100072c0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
jmp 0x1000718d
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x1000a5e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x280c
call fcn.10024f50
mov eax, dword [0x10381040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2808], ecx
mov eax, dword [ebp - 0x2808]
mov byte [eax], 1
mov ecx, dword [ebp - 0x2808]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x2808]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x2808]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x2808]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x2808]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x2808]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x2808]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x2808]
mov dword [edx + 0x10], 0
mov eax, 1
test eax, eax
je 0x1000a6c4
mov ecx, dword [ebp + 8]
push ecx
push 0x2800
push 1
lea edx, [ebp - 0x2804]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [ebp - 0x280c], eax
cmp dword [ebp - 0x280c], 0
jne 0x1000a6a5
jmp 0x1000a6c4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x280c]
push ecx
lea edx, [ebp - 0x2804]
push edx
mov ecx, dword [ebp - 0x2808]
call fcn.1000aa20
jmp 0x1000a66e
mov eax, dword [ebp - 0x2808]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10023e46
mov esp, ebp
pop ebp
ret 8
Function at 0x10015490
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x100154a8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jge 0x10015507
mov ecx, dword [ebp - 4]
shl ecx, 0x18
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x100154cc
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jge 0x100154f8
cmp dword [ebp - 8], 0x80000000
jb 0x100154e4
mov dword [ebp - 0x10], 0x4c11db7
jmp 0x100154eb
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
shl eax, 1
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x100154c3
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx*4 + 0x103825d0], edx
jmp 0x1001549f
mov esp, ebp
pop ebp
ret

Function at 0x10016620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x10016678
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
add edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
cmp edx, dword [eax + 0x28]
jbe 0x1001664b
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x60], 1
xor eax, eax
jmp 0x100166ac
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
add ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], ecx
mov eax, 1
jmp 0x100166ac
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x100166a0
mov eax, 1
jmp 0x100166ac
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x60], 1
xor eax, eax
pop ebp
ret
Function at 0x5faf10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x60f9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x5fb002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.005fedff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x5fb002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.005f66e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.005ff20b
push 0x10
call fcn.005ff1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x5fafc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.005eb1c0
jmp 0x5fafc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.005fab80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x5faff0
mov ecx, edi
call fcn.005eb2c0
push edi
call fcn.005ff1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5fb021
inc ebx
cmp ebx, 0x20
jb 0x5faf3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x5fe1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.005fe140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.005fe140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.005fe140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.005fe140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x5febfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5fec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x61087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5fec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5fec52
xor eax, eax
pop esi
leave
ret 4
Function at 0x402030
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2218
call fcn.0043dfd0
mov eax, dword [0x478584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x20]
push edi
xor eax, eax
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [esi]
mov word [ebp - 0x20c], ax
mov eax, dword [esi + 8]
push edx
push eax
push ecx
xor ebx, ebx
call dword [sym.imp.WININET.dll_CreateUrlCacheEntryW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 2
push ebx
push 7
push 0x40000000
lea edx, [ebp - 0x20c]
push edx
call edi
mov dword [ebp - 0x2210], eax
cmp eax, 0xffffffff
je 0x402142
mov eax, dword [esi + 4]
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocStringLen
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x402135
push ebx
lea eax, [ebp - 0x2214]
push eax
push 0x2000
lea ecx, [ebp - 0x220c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40212e
jmp 0x4020e0
mov eax, dword [ebp - 0x2214]
test eax, eax
je 0x40212e
mov ecx, dword [ebp - 0x2210]
push 0
lea edx, [ebp - 0x2218]
push edx
push eax
lea eax, [ebp - 0x220c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, dword [ebp - 0x2218]
push 0
lea edx, [ebp - 0x2214]
push edx
push 0x2000
lea eax, [ebp - 0x220c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4020e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2210]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, dword [esi + 8]
jne 0x402177
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov ecx, dword [eax - 0xc]
push 0
push edx
mov edx, dword [esi + 0x18]
push ecx
mov ecx, dword [esi + 0x10]
push eax
mov eax, dword [esi + 0x14]
push 1
push edx
mov edx, dword [esi + 0xc]
push eax
push ecx
mov ecx, dword [esi]
push edx
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [sym.imp.WININET.dll_CommitUrlCacheEntryW]
mov ecx, esi
call fcn.00401610
push esi
call fcn.0043d995
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043dfbe
mov esp, ebp
pop ebp
ret 4
Function at 0x402f00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0
mov esi, ecx
push esi
push 0x402ee0
push 0
push 0
call fcn.0043e3cf
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x402f2c
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp dword [0x4798e0], 0
jne 0x402f48
push 0x19
call edi
inc esi
cmp esi, 0x64
jl 0x402f35
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403220
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454abb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x478584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], ecx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [ebp - 4], eax
push eax
push esi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], eax
mov word [esi + 0x44], ax
mov byte [esi + 0x46], al
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x40329c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4