joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe870a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0xee2014]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x84]
mov esi, ecx
push eax
push 0
call 0x4c90000
nop
mov eax, 0x5a4d
cmp word [esi], ax
jne 0xe87289
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0xe87289
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.00eb40f0
add esp, 0xc
lea eax, [esp + 0x20]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
call 0x4c900da
nop
test eax, eax
je 0xe87289
push 4
push 0x1000
push 4
push 0
call 0x4c80c2c
nop
push eax
mov dword [esp + 0x1c], eax
mov dword [eax], 0x10007
push dword [esp + 0x28]
call 0x4c70006
nop
test eax, eax
je 0xe87289
push 0
push 4
lea eax, [esp + 0x24]
push eax
push 0xed8df8
push dword [esp + 0x30]
call 0x4c702fc
nop
mov eax, dword [edi + 0x34]
cmp dword [esp + 0x1c], eax
jne 0xe871ac
push 0xed8dfc
push 0xed8e14
call 0x4c80982
nop
push eax
call 0x4c70115
nop
push dword [esp + 0x1c]
push dword [esp + 0x24]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [esp + 0x30]
call 0x4c70254
nop
mov dword [esp + 0x14], eax
test eax, eax
je 0xe87289
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [esp + 0x30]
call 0x4c80e4a
nop
xor eax, eax
mov dword [esp + 0x10], 0
cmp ax, word [edi + 6]
jae 0xe87243
mov dword [esp + 0xc], eax
call fcn.00e86ef0
push eax
call 0x4c808c2
nop
mov ecx, dword [esp + 0xc]
add ecx, esi
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, esi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
call 0x4c80e4a
nop
mov ecx, dword [esp + 0x10]
movzx eax, word [edi + 6]
inc ecx
add dword [esp + 0xc], 0x28
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0xe871f2
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
push dword [esp + 0x30]
call 0x4c80e4a
nop
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push ecx
mov dword [ecx + 0xb0], eax
push dword [esp + 0x28]
call 0x4c70388
nop
push dword [esp + 0x24]
call 0x4c80a17
nop
push 0x8000
push 0
push esi
call 0x4c80d2f
nop
mov ecx, dword [esp + 0x18c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.00e9cff1
mov esp, ebp
pop ebp
ret
Function at 0xe8af20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xec9726
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0xee2014]
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 ebx, ecx
mov dword [ebp - 0x414], ebx
push 0
mov dword [ebp - 0x414], ebx
call fcn.00eb8b63
push eax
call fcn.00eb6660
add esp, 8
call fcn.00eb663f
cdq
mov ecx, 0x3313
idiv ecx
mov edi, edx
call fcn.00eb663f
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov esi, edx
shr esi, 0x1f
add esi, edx
imul esi, edi
call fcn.00eb663f
imul edx, eax, 0x4d
lea ecx, [ebp - 0x444]
add edx, 0x64
add edx, esi
call fcn.00e845b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x444]
cmp dword [ebp - 0x430], 0x10
lea edx, [ebp - 0x410]
cmovae eax, dword [ebp - 0x444]
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0xe8afd0
lea esi, [ebp - 0x410]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0xe8afe6
push 0x40
push 0
push 0xee8560
sub esi, ecx
call fcn.00eb40f0
add esp, 0xc
mov dword [0xee8554], 0
mov edx, esi
mov dword [0xee8550], 0
lea ecx, [ebp - 0x410]
mov dword [0xee8540], 0x67452301
mov dword [0xee8544], 0xefcdab89
mov dword [0xee8548], 0x98badcfe
mov dword [0xee854c], 0x10325476
call fcn.00e85530
call fcn.00e855f0
mov ecx, 0xee65a0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0xf
mov byte [ebp - 0x42c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0xe8b071
sub ecx, edx
push ecx
push 0xee65a0
lea ecx, [ebp - 0x42c]
call fcn.00e980c0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x430]
cmp edx, 0x10
jb 0xe8b0cc
mov ecx, dword [ebp - 0x444]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0xe8b0c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0xe8b18c
push edx
push ecx
call fcn.00e9d663
add esp, 8
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0xf
mov byte [ebp - 0x444], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x41c]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
cmp eax, 1
jb 0xe8b187
dec eax
mov ecx, 0xa
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x418], 0x10
lea eax, [ebp - 0x42c]
cmovae eax, dword [ebp - 0x42c]
push ecx
inc eax
mov ecx, ebx
push eax
call fcn.00e980c0
mov edx, dword [ebp - 0x418]
cmp edx, 0x10
jb 0xe8b169
mov ecx, dword [ebp - 0x42c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0xe8b15f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0xe8b18c
push edx
push ecx
call fcn.00e9d663
add esp, 8
mov eax, ebx
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.00e9cff1
mov esp, ebp
pop ebp
ret
call fcn.00e98200
call fcn.00eb6c6a
int3
Function at 0xe9dcc7
Capabilities:
Parse pe header

Disassembly:
push 0
call 0x4ca0f31
nop
test eax, eax
je 0xe9dd07
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xe9dd07
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xe9dd07
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0xe9dd07
cmp dword [ecx + 0x74], 0xe
jbe 0xe9dd07
cmp dword [ecx + 0xe8], 0
je 0xe9dd07
mov al, 1
ret
xor al, al
ret
Function at 0x10c2f86
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ecx
push eax
push edx
jmp 0x10c2f97
rdtsc
pushal
popal
pop edx
pop eax
pop ecx
push eax
push eax
push edx
jle 0x10c2fa9
push esi
pop esi
rdtsc
jmp 0x10c2fbd
pop edx
pop eax
mov eax, dword [esp + 4]
push eax
push edx
jmp 0x10c2fd8
rdtsc
pushal
pushal
popal
pushal
popal
popal
pop edx
pop eax
mov eax, dword [eax]
jmp 0x10c2ff5
mov dword [esp + 4], eax
push ebx
jmp 0x10c3009
pop ebx
pop eax
jmp 0x10c301c
push dword [ebp + 0x122d0d65]
push 0
push eax
call 0x10c302d
and byte [eax - 0x3d], bl
pop eax
mov dword [esp + 4], eax
add dword [esp + 4], 0x19
inc eax
push eax
ret
Function at 0x1153af5
Capabilities:
Encode data using xor

Disassembly:
pop eax
add eax, 0xb
mov dword [ebx], eax
jmp 0x1153aea
call 0x1153af5
xchg edi, eax
lea ecx, ds:[ecx - 0x18]
fstp dword [eax - 0x7f]
ljmp 0x81fb

Function at 0x405004
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
xor edi, edi
mov eax, dword [0x48c954]
add eax, 0x8763d465
xor edx, edx
mov dword [0x48c8f4], eax
push 0x2b
pop ecx
div ecx
lea esi, [ebp + edi - 0x40]
movsx ecx, byte [esi]
mov eax, edi
push 0x19
pop ebx
xor ecx, edx
mov dword [0x48c8f8], edx
cdq
idiv ebx
add dl, 0x61
movsx eax, dl
imul eax, ecx
imul eax, eax, 0xd6d9e1a5
mov byte [esi], dl
xor edx, edx
mov ecx, 0x1f61ece1
div ecx
inc edi
mov dword [0x48c954], edx
cmp edi, 0x40
jb 0x40500f
mov byte [ebp - 1], 0
mov dword [0x48c97c], 0xc8bde6ac
call fcn.004050e9
mov edi, eax
mov esi, 0xffca3460
lea ecx, [ebp - 0x3f]
lea eax, [ebp - 0x40]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4050a2
test dl, dl
je 0x40509e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4050a2
add eax, 2
add ecx, 2
test dl, dl
jne 0x405082
xor eax, eax
jmp 0x4050a7
sbb eax, eax
sbb eax, 0xffffffff
add dword [0x48c954], eax
push 0x20
push 0x20
push 0xc0
lea eax, [ebp - 0x40]
push str.0xb1_u_u_u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
imul eax, dword [0x48c954]
add esp, 0x14
inc esi
mov dword [0x48c954], eax
cmp esi, 0xd9
jle 0x40507c
call fcn.004050e9
xor eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43ba50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov dword [esp], 0xf7f609d8
mov dword [esp + 4], 0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ecx
add dl, 0x7e
xor dl, byte [esp + ecx]
add dl, 0x8a
mov byte [esp + ecx], dl
inc ecx
cmp ecx, 8
jne 0x43ba70
mov ecx, dword [esp]
mov ecx, dword fs:[ecx]
push eax
push 0
push dword [ecx + 0x18]
call dword [str.0KBw]
mov ecx, dword [0x44c4a4]
nop
nop
nop
nop
jmp ecx

Function at 0x43bac0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
sub esp, 8
mov eax, dword [esp + 0x14]
xor ecx, ecx
test eax, eax
setne cl
jmp dword [ecx*4 + 0x44c4bc]
Function at 0x667982fc
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x66e4e018]
movzx eax, word [eax + 0x14]
movzx eax, ax
mov edx, dword [0x66e4e018]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
jmp 0x6679837f
jmp 0x667983e2
jmp 0x66798445
jmp 0x667984a8
jmp 0x6679850b
jmp 0x6679856e
jmp 0x667985d1
jmp 0x66798634
jmp 0x66798697
jmp 0x667986fa
jmp 0x6679875d
jmp 0x667987c0
jmp 0x66798823
jmp 0x66798886
mov dword [ebp - 0x14], 0
jmp 0x667988f0
jmp 0x66798953
jmp 0x667989b6
jmp 0x66798a19
jmp 0x66798a7c
jmp 0x66798adf
jmp 0x66798b42
jmp 0x66798ba5
jmp 0x66798c08
jmp 0x66798c6b
jmp 0x66798cce
jmp 0x66798d31
jmp 0x66798d94
jmp 0x66798df7
mov dword [ebp - 0x18], 0
Function at 0x441410
Capabilities:
Hash data with md5

Disassembly:
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov edi, dword [esp + 0x18]
add dword [0x486b5c], 0x52bf9f13
mov ax, word [0x481922]
add eax, 0xfffffabf
mov word [0x481922], ax
mov dword [esp], edi
call fcn.0044dcc0
xor dword [0x483fc8], 0x8684a700
mov cx, word [0x480ee0]
and ecx, 0xf599
mov word [0x480ee0], cx
mov dword [esi], 0
mov word [0x480e42], 0xe762
mov dword [esi + 4], 0
mov cx, word [0x480804]
and ecx, 0x3460
mov word [0x480804], cx
mov dword [esi + 8], 0x67452301
mov ecx, dword [0x483284]
lea edx, [ecx - 1]
mov dword [0x483284], edx
xor dword [0x48458c], ecx
mov dword [esi + 0xc], 0xefcdab89
mov ecx, dword [0x484984]
mov ecx, dword [0x483d14]
xor ecx, 0xaffb12fc
cmp ecx, 0xb70de450
jl 0x4414f2
mov ecx, dword [0x4832e4]
lea edx, [ecx + 1]
mov dword [0x4832e4], edx
mov edx, dword [0x4841f8]
inc edx
mov dword [0x4841f8], edx
mov ebx, dword [0x486c5c]
imul ebx, ecx
imul ebx, edx
mov dword [0x486c5c], ebx
mov dword [esi + 0x10], 0x98badcfe
mov word [0x4823f2], 0xe42d
mov dword [esi + 0x14], 0x10325476
xor dword [0x484b2c], 0x546a9ad
inc dword [0x485e44]
mov ecx, dword [0x482fc8]
xor ecx, 0x9f01629b
mov edx, dword [0x483bcc]
sub edx, ecx
mov dword [0x483bcc], edx
mov dword [esp + 4], eax
mov dword [esp], edi
mov ecx, esi
call fcn.0043ae10
sub esp, 8
mov eax, dword [0x485120]
mov ecx, dword [0x485384]
cmp eax, ecx
jle 0x441564
mov ax, word [0x482710]
add eax, 0x100d
mov word [0x482710], ax
mov ecx, esi
call fcn.0040ba40
mov eax, dword [0x485a90]
lea ecx, [eax + 1]
mov dword [0x485a90], ecx
and eax, 0x807140b8
mov ecx, dword [0x4848f4]
imul ecx, eax
mov dword [0x4848f4], ecx
mov ecx, esi
call fcn.004481f0
add dword [0x4834d0], 0x19d28633
add esi, 0xb9
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
ret 4
Function at 0x448ec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
and dword [0x483fd8], 0x35bf7c58
add dword [0x484af4], 0x4db0303c
mov edx, dword [0x485490]
imul edx, edx, 0xd8535dba
and edx, 0xa7de
mov si, word [0x480864]
add esi, edx
mov word [0x480864], si
or dword [0x482e3c], 0xb66a0d41
mov dx, word [0x482616]
inc edx
mov word [0x482616], dx
mov edx, dword [0x483d7c]
mov si, word [0x4810d2]
xor esi, edx
mov word [0x4810d2], si
mov edi, eax
shr edi, 8
mov edx, eax
shr edx, 0x10
mov esi, dword [0x484c4c]
and dword [0x482d1c], esi
mov ebx, eax
shr ebx, 0x18
test ecx, 0x3fffffff
je 0x449018
mov esi, dword [esp + 0x18]
shl ecx, 2
mov dword [esp], ecx
mov ebp, dword [0x486060]
shr ebp, 1
and ebp, 0x58c9fbb9
mov ecx, dword [0x482ad8]
xor ecx, ebp
and dword [0x482ddc], ecx
shl ebx, 0x18
shl edx, 0x10
and edx, 0xff0000
or edx, ebx
shl edi, 8
movzx ebx, di
or ebx, edx
movzx ecx, al
or ecx, ebx
xor dword [esi], ecx
xor dword [0x4853f8], 0x4cb180a
shld eax, ecx, 0x1a
shr ebx, 0xe
shr edx, 0x16
add dword [0x484cf4], 0xd25bae8c
movzx ecx, bl
add edx, ebx
mov edi, dword [0x48621c]
lea ebx, [edi + 1]
mov dword [0x48621c], ebx
imul edi, edi, 0x772eaa69
mov ebx, dword [0x485a24]
xor ebx, edi
not ebx
add dword [0x4840e4], ebx
movzx edi, dl
add edi, ecx
mov ecx, dword [0x4866b4]
lea ebx, [ecx - 1]
mov dword [0x4866b4], ebx
xor ecx, 0x35545452
mov dword [0x486850], ecx
mov ecx, dword [esp]
add esi, 4
mov ebx, eax
shr ebx, 0x18
add ecx, 0xfffffffc
jne 0x448f60
mov dword [0x4850b0], 0x20200c81
shl ebx, 0x18
shl edx, 0x10
and edx, 0xff0000
shl edi, 8
movzx ecx, di
movzx eax, al
or eax, ebx
or eax, edx
or eax, ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x458af5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47fcf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00454bca
mov dword [ebp - 0x14], eax
cmp dword [0x4883dc], esi
jne 0x458be8
push 0x800
push esi
push 0x46f238
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x458b75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x458cc8
push esi
push esi
push 0x46f238
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x458cc8
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x458cc8
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4883dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4883e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4883e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4883ec], eax
test eax, eax
je 0x458be5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4883e8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x458c0d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x458c00
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x458c22
push 4
pop eax
jmp 0x458cca
cmp dword [ebp - 0x14], esi
je 0x458c22
push dword [0x4883dc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x458c07
mov eax, dword [0x4883e8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x458c80
cmp dword [0x4883ec], edi
je 0x458c80
push eax
call ebx
push dword [0x4883ec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x458c80
test eax, eax
je 0x458c80
call ecx
test eax, eax
je 0x458c75
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x458c75
test byte [ebp - 8], 1
jne 0x458c80
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x458cb0
mov eax, dword [0x4883e0]
cmp eax, edi
je 0x458cad
push eax
call ebx
test eax, eax
je 0x458cad
call eax
mov esi, eax
test esi, esi
je 0x458cad
mov eax, dword [0x4883e4]
cmp eax, edi
je 0x458cad
push eax
call ebx
test eax, eax
je 0x458cad
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4883dc]
call ebx
test eax, eax
je 0x458cc8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x458cca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00458cf9
mov esp, ebp
pop ebp
ret
Function at 0x4044a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x469f40]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x40c]
call fcn.00403d50
cmp byte [0x46edb8], 0
je 0x4044e2
lea eax, [ebp - 0x40c]
push eax
push str._s__n
call fcn.00403bd0
add esp, 8
push 0
lea eax, [ebp - 0x410]
mov dword [ebp - 0x410], 0
push eax
push 0
push 0x10
push 0x200
lea eax, [ebp - 0x40c]
push eax
push 0x32
push str.Updater
push 0xffffffffffffffff
push 0
call dword [sym.imp.WTSAPI32.dll_WTSSendMessageA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x407b25
Capabilities:
Parse pe header

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

Function at 0x40a9b3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00406fb0
mov eax, dword [0x469f40]
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.00410997
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x40a9f5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x40ab51
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406fe0
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 + 0x46e8f0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00413373
mov ecx, dword [esi*4 + 0x46e8f0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x40ab4a
cmp eax, dword [ecx + edi + 0x24]
jne 0x40ab4a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ab4a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00413373
add esp, 0x14
test edx, edx
jl 0x40ab4a
jg 0x40aac0
test eax, eax
jb 0x40ab4a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x40ab4a
jl 0x40aada
cmp dword [ebp - 0x1008], eax
ja 0x40ab4a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x40aaf8
test ebx, ebx
je 0x40ab31
cmp ecx, edi
jae 0x40ab31
mov al, byte [ecx]
cmp al, 0xd
jne 0x40ab12
lea eax, [edi - 1]
cmp ecx, eax
jae 0x40ab1e
cmp byte [ecx + 1], 0xa
jne 0x40ab1e
inc ecx
jmp 0x40ab1e
movzx eax, al
movsx eax, byte [eax + 0x46a308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x40aaf8
cmp edx, ebx
jne 0x40aaf8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x40ab4f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406aa2
leave
ret
Function at 0x40fd5f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x469f40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x454b38
push esi
call fcn.00417fca
pop ecx
pop ecx
test eax, eax
jne 0x40fd8d
xor al, al
jmp 0x40fe0a
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0040faa0
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x40fdc7
push dword [ebp - 0x210]
call fcn.0040ea44
xor al, al
jmp 0x40fe08
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40fdcd
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x40fded
push edx
call fcn.0040fc96
pop ecx
test al, al
je 0x40fdb8
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x40fdfb
mov bl, 1
push dword [ebp - 0x210]
call fcn.0040ea44
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00406aa2
leave
ret
Function at 0x410550
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004104cc
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4106bf
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4106bf
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x410674
jg 0x4105ac
test eax, eax
je 0x41066a
push 1
push 0x1000
call fcn.00417155
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4105cf
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x410661
push 0x8000
push ebx
call fcn.004122a5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4105f8
jg 0x4105f3
cmp ecx, 0x1000
jb 0x4105f8
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004158f5
add esp, 0x10
cmp eax, 0xffffffff
je 0x41063d
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4105f3
jl 0x410624
test ecx, ecx
jne 0x4105e5
push dword [ebp - 0xc]
push ebx
call fcn.004122a5
push esi
call fcn.00414d8d
add esp, 0xc
xor ebx, ebx
jmp 0x4106cd
cmp byte [edi + 0x24], 0
je 0x410654
cmp dword [edi + 0x20], 5
jne 0x410654
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41065f
mov ebx, dword [edi + 0x18]
jmp 0x410661
xor ebx, ebx
push esi
call fcn.00414d8d
pop ecx
jmp 0x4106cd
test ecx, ecx
jg 0x410636
jl 0x410674
test eax, eax
jae 0x410636
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00413391
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x410694
cmp byte [edi + 0x1c], 0
je 0x410636
jmp 0x4106c5
push ebx
call fcn.00418621
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x410636
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4106cd
cmp byte [edi + 0x1c], 0
je 0x4106ca
mov ebx, dword [edi + 0x18]
jmp 0x4106cd
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00413391
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret