joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d37aa6d
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x7a0]
sub esp, 0x820
mov eax, dword [0x6d38bb70]
xor eax, ebp
mov dword [ebp + 0x79c], eax
mov ecx, dword [ebp + 0x7b0]
mov eax, dword [ebp + 0x7a8]
push ebx
push esi
push edi
push dword [0x6d38bca0]
xor esi, esi
push ecx
push eax
xor edi, edi
call fcn.6d3753cb
add esp, 0xc
mov ebx, eax
push 0x400
lea eax, [ebp - 0x68]
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetVolumePathNameW]
test eax, eax
je 0x6d37ab01
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.kernel32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x6d37ab01
mov eax, dword [ebp + 0x7b4]
sub eax, edi
je 0x6d37aafb
dec eax
je 0x6d37aaf3
dec eax
jne 0x6d37ab01
mov esi, dword [ebp - 0x80]
mov edi, dword [ebp - 0x7c]
jmp 0x6d37ab01
mov esi, dword [ebp - 0x70]
mov edi, dword [ebp - 0x6c]
jmp 0x6d37ab01
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x74]
push ebx
call dword [sym.imp.msvcr100.dll_free]
pop ecx
mov ecx, dword [ebp + 0x79c]
mov edx, edi
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d381820
add ebp, 0x7a0
leave
ret 0x10

Function at 0x6d37abe1
Capabilities:
Check if file exists

Disassembly:
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
je 0x6d37ac17
cmp eax, 0x10b
je 0x6d37ac17
cmp eax, 3
je 0x6d37ac17
cmp eax, 0x35
je 0x6d37ac17
cmp eax, 0x43
je 0x6d37ac17
cmp eax, 5
je 0x6d37ac17
cmp eax, 0x4cf
je 0x6d37ac17
cmp eax, 0x41
je 0x6d37ac17
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x6d37b7a5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x6d38bb70]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x98]
push ebx
mov ebx, dword [eax]
and dword [esi], 0
cmp dword [0x6d38bca8], 0
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x7c], ecx
je 0x6d37b7f7
push eax
push ecx
push esi
push 0
push dword [edi*4 + str.DP8m4P8m_P8m_P8mO]
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x6d37b7f7
cmp dword [esi], 1
je 0x6d37b843
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push 0
push dword [edi*4 + 0x6d38b30c]
mov dword [ebp - 0x80], 0x100
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x6d37b845
cmp dword [esi], 1
je 0x6d37b829
mov eax, 0x3f2
jmp 0x6d37b845
shr ebx, 1
push ebx
push dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
push 0xffffffffffffffff
push eax
push 8
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
jle 0x6d37b822
xor eax, eax
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
pop ebx
call fcn.6d381820
add ebp, 0x90
leave
ret
Function at 0x6d37c007
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
push edi
push 0
push dword [esp + 0x20]
push esi
call dword [eax + 0x2e0]
mov edi, eax
push edi
push dword [esp + 0x1c]
call dword [sym.imp.advapi32.dll_RegDeleteKeyA]
push 0
push edi
push dword [esp + 0x24]
mov ebx, eax
mov eax, dword [esi]
push esi
call dword [eax + 0x300]
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0x10

Function at 0x6d37c34e
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.advapi32.dll_CryptAcquireContextA]
push edi
xor ebx, ebx
push ebx
push 1
push ebx
mov edi, str.J2SE
push edi
lea eax, [ebp - 8]
push eax
mov byte [ebp - 1], bl
call esi
test eax, eax
jne 0x6d37c389
push 8
push 1
push ebx
push edi
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
jne 0x6d37c389
xor al, al
jmp 0x6d37c3da
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push esi
call dword [eax + 0x2ac]
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x2e0]
mov edi, eax
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CryptGenRandom]
test eax, eax
je 0x6d37c3bf
mov byte [ebp - 1], 1
mov eax, dword [esi]
push ebx
push edi
push dword [ebp + 0x10]
push esi
call dword [eax + 0x300]
push ebx
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x6d37dc10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x6d37dc1f
pop dword [ebp - 0x50]
mov eax, 0xf142989e
sub eax, 0x840abc7f
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xc1f62ba
add dword [ebp - 0x60], 0x4232e291
mov dword [ebp - 0x5c], 0x9c4d959c
add dword [ebp - 0x5c], 0x95e5b6a9
mov dword [ebp - 0x58], 0x898b2981
add dword [ebp - 0x58], 0xc2c11aad
mov dword [ebp - 0x54], 0x5ed174f3
add dword [ebp - 0x54], 0xa12e8b0d
lea eax, [ebp - 0x60]
push eax
mov eax, 0xb5311fce
sub eax, 0x47f8eeae
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xdab14fdf
add dword [ebp - 0x60], 0x99c11977
mov dword [ebp - 0x5c], 0x7f34c7e4
add dword [ebp - 0x5c], 0xc2379991
mov dword [ebp - 0x58], 0x60a812dc
sub dword [ebp - 0x58], 0xfd38a670
mov dword [ebp - 0x54], 0x8794a9f6
sub dword [ebp - 0x54], 0x8794a9f6
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x92b13422
sub eax, 0x25790306
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3a633
push 0
call eax
mov ecx, 0x15cd5151
add ecx, 0xea330202
xor ebx, ebx
add ebx, eax
mov edi, 0x617b4ff5
sub edi, 0xf4425bf5
add edi, dword [ebp - 0x50]
mov edx, 0xef58fb5f
xor dword [ebp - 0x38], 0xc2fb8b4f
mov esi, dword [edi]
add dword [ebp - 8], ecx
add esi, edx
add dword [ebp - 0x38], esi
mov dword [ebx], esi
add ebx, 0x7028a779
add ebx, 0x8fd7588b
add edi, 4
loop 0x6d37dd3d
add eax, 0x8f16c90f
sub eax, 0x8f1588f0
xor ebx, ebx
add ebx, eax
add eax, 0xd822c2e4
add eax, 0x27dd3d21
mov ecx, 0x6d370000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x6d381820
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d38bb70]
jne 0x6d38182a
repz ret
jmp fcn.6d381dab
Function at 0x48a3b2
Capabilities:
Parse pe header

Disassembly:
pushal
xor edx, edx
mov esi, dword fs:[edx]
lodsd eax, dword [esi]
cmp eax, 0xffffffff
je 0x48a3c2
mov esi, eax
jmp 0x48a3b8
mov edi, dword [esi + 4]
and edi, 0xffff0000
cmp word [edi], 0x5a4d
je 0x48a3da
sub edi, 0x10000
jmp 0x48a3cb
mov ebx, edi
add ebx, dword [ebx + 0x3c]
cmp word [ebx], 0x4550
je 0x48a3e8
jmp 0x48a3cb
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x48a3ee
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
pushal
mov ebx, dword [esp + 0x24]
mov ecx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
add ebx, ecx
mov edi, dword [ebx + 0x20]
add edi, ecx
xor esi, esi
lea edx, [edi + esi*4]
mov edx, dword [edx]
add edx, ecx
xor eax, eax
rol eax, 7
xor al, byte [edx]
inc edx
cmp byte [edx], 0
jne 0x48a40d
cmp eax, dword [esp + 0x28]
je 0x48a424
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x48a404
mov edx, dword [ebx + 0x24]
add edx, ecx
movzx edx, word [edx + esi*2]
mov eax, dword [ebx + 0x1c]
add eax, ecx
mov eax, dword [eax + edx*4]
add eax, ecx
mov dword [esp + 0x1c], eax
popal
ret 8

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
je 0x431072
nop
nop
nop
nop
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x31934ffc
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x6534d1a
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x1002bcdf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1002bcee
pop dword [ebp - 0x34]
mov eax, 0x9db284a9
add eax, 0x72503845
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x45938377
sub dword [ebp - 0x44], 0xf7413e2c
mov dword [ebp - 0x40], 0xabd5392b
add dword [ebp - 0x40], 0x865e131a
mov dword [ebp - 0x3c], 0xddec09aa
sub dword [ebp - 0x3c], 0x919fc57c
mov dword [ebp - 0x38], 0x33740f46
sub dword [ebp - 0x38], 0x33740f46
lea eax, [ebp - 0x44]
push eax
mov eax, 0x8eee2918
add eax, 0x8114c874
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x18a9ca79
sub dword [ebp - 0x44], 0xa4376123
mov dword [ebp - 0x40], 0x88f00968
sub dword [ebp - 0x40], 0x4783a7f3
mov dword [ebp - 0x3c], 0xd6465db3
sub dword [ebp - 0x3c], 0x72d6f147
mov dword [ebp - 0x38], 0xdad9a83d
add dword [ebp - 0x38], 0x252657c3
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x98c7a8d6
sub eax, 0x88c4b7ea
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x45a37
push 0
call eax
mov ecx, 0xaca3aaef
sub ecx, 0xaca35e55
mov edi, eax
mov ebx, 0x8cacc61
sub ebx, 0xf8c66861
add ebx, dword [ebp - 0x34]
mov edx, 0xd67ccc73
sub edx, 0x529612bf
xor dword [ebp - 0x2c], edi
mov esi, dword [ebx]
add dword [ebp - 0x14], eax
add esi, edx
xor dword [ebp - 4], 0x48f90355
mov dword [edi], esi
add edi, 0x40861dd9
add edi, 0xbf79e22b
add ebx, 0x7feea47
sub ebx, 0x7feea43
loop 0x1002be10
add eax, 0xce456bdc
sub eax, 0xce4446a1
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x84cdfe6
sub ecx, 0xf84cdfe6
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001f870
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001f870
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x407050
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652831
mov eax, dword fs:[0]
push eax
sub esp, 0x108
push esi
mov eax, dword [0x6ee06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004347f0
mov ecx, dword [esi + 0x54]
call fcn.0042af40
push eax
push dword [esi + 0x590]
call dword [0x6fe4dc]
lea eax, [ebp - 0x90]
push eax
call fcn.0042ac40
add esp, 0xc
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004399a0
push eax
push dword [esi + 0x590]
call dword [0x6fe650]
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.004347f0
lea eax, [ebp - 0x90]
push eax
call fcn.0042ac40
add esp, 4
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.004399a0
push eax
push dword [esi + 0x590]
call dword [0x6fe674]
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.004347f0
push str.WkeBrowser
push dword [esi + 0x590]
call dword [0x6fe3c0]
push 1
push dword [esi + 0x590]
call dword [0x6fe454]
push 0
push dword [esi + 0x590]
call dword [0x6fe2f4]
push 0
push dword [esi + 0x590]
call dword [0x6fe61c]
lea eax, [ebp - 0x114]
push eax
call fcn.0042ac40
add esp, 0x24
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.004399a0
push eax
push dword [esi + 0x590]
call dword [0x6fe564]
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.004347f0
mov ecx, dword [esi + 0x54]
call fcn.0042b420
movzx eax, al
push eax
push dword [esi + 0x590]
call dword [0x6fe538]
push 0
push dword [esi + 0x590]
call dword [0x6fe6bc]
push esi
push 0x407d10
push dword [esi + 0x590]
call dword [0x6fe418]
push esi
push 0x407d50
push dword [esi + 0x590]
call dword [0x6fe278]
push esi
push 0x407df0
push dword [esi + 0x590]
call dword [0x6fe6ac]
push esi
push 0x407e60
push dword [esi + 0x590]
call dword [0x6fe388]
add esp, 0x40
push esi
push 0x407ea0
push dword [esi + 0x590]
call dword [0x6fe3b0]
push esi
push 0x407ed0
push dword [esi + 0x590]
call dword [0x6fe488]
push esi
push 0x407f10
push dword [esi + 0x590]
call dword [0x6fe410]
push esi
push 0x408040
push dword [esi + 0x590]
call dword [0x6fe1c4]
push esi
push 0x407cf0
push dword [esi + 0x590]
call dword [0x6fe64c]
push esi
push 0x407db0
push dword [esi + 0x590]
call dword [0x6fe2c4]
add esp, 0x48
push esi
push 0x407ff0
push dword [esi + 0x590]
call dword [0x6fe4d8]
push esi
push 0x408000
push dword [esi + 0x590]
call dword [0x6fe1a0]
push str.Mozilla_5.0__Windows_NT_6.1__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_69.0.2228.0_Safari_537.36
push dword [esi + 0x590]
call dword [0x6fe5e0]
mov eax, dword [esi + 0x56c]
lea ecx, [esi + 0x56c]
add esp, 0x20
push esi
call dword [eax]
mov ecx, dword [esi + 0x54]
lea eax, [esi + 0x568]
push eax
call fcn.004299c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407670
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652871
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x6ee06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x6fe118]
test eax, eax
je 0x4076b2
call eax
test eax, eax
je 0x4076b2
mov al, 1
jmp 0x407851
push 0x84
lea eax, [ebp - 0x324]
push 0
push eax
call fcn.004e7e00
add esp, 0xc
lea ecx, [ebp - 0x324]
push 0xffffffffffffffff
push 0
call fcn.00439570
lea ecx, [ebp - 0x324]
mov dword [ebp - 4], 0
call fcn.0043a600
test al, al
je 0x4076fd
push 0x6fe748
lea ecx, [ebp - 0x324]
call fcn.00439860
push 0x84
lea eax, [ebp - 0x2a0]
push 0
push eax
call fcn.004e7e00
add esp, 0xc
lea eax, [ebp - 0x324]
lea ecx, [ebp - 0x2a0]
push eax
call fcn.00439530
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 1
call fcn.004399a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4077ca
push 0x20a
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.004e7e00
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call fcn.004e74e1
add esp, 8
test eax, eax
je 0x407787
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00439890
lea ecx, [ebp - 0x324]
call fcn.004399a0
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00439be0
lea ecx, [ebp - 0x2a0]
call fcn.004399a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4077ca
xor bl, bl
jmp 0x407839
lea ecx, [ebp - 0x2a0]
call fcn.004399a0
mov dword [str.node.dll], eax
call fcn.00403ee0
push 2
push 0
push 0x408080
push str.jsExternal
call dword [0x6fe22c]
add esp, 0x10
push 0x406d10
sub esp, 0x84
mov ecx, esp
mov dword [ebp - 0x328], esp
push 0xffffffffffffffff
push str.CWkeWebkitUI
call fcn.00439570
mov byte [ebp - 4], 2
call fcn.00464ec0
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00464f90
mov eax, dword [0x6fe118]
test eax, eax
je 0x407834
call eax
test eax, eax
setne bl
lea ecx, [ebp - 0x2a0]
call fcn.004347f0
lea ecx, [ebp - 0x324]
call fcn.004347f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423c15
mov esp, ebp
pop ebp
ret
Function at 0x409650
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1530
call fcn.00424fb0
mov eax, dword [0x6ee06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push 0x110
push ebx
mov dword [ebp - 0x1530], esi
mov eax, dword [esi + 0x210]
mov dword [esi + 0x214], eax
lea eax, [ebp - 0x518]
push eax
call fcn.004e7e00
add esp, 0xc
mov dword [ebp - 0x51c], 0x114
lea eax, [ebp - 0x51c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x50c], 2
jne 0x4096c0
mov ecx, esi
call fcn.00408ed0
jmp 0x4097f7
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov dword [ebp - 0x152c], ebx
push edi
nop dword [eax]
test ebx, ebx
jne 0x4097f0
push 0x100
mov dword [ebp - 0x408], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x409704
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nERROR:_Could_not_SetPriorityClass__LastError:__d_n
call fcn.00408c40
add esp, 8
push 0x100c
lea eax, [ebp - 0x1528]
push 0
push eax
call fcn.004e7e00
add esp, 0xc
push 0
push 0x4000000
push 0
push 0
push 0
push 0
push str..IDE21201.VXD
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x409761
push 0
lea eax, [ebp - 0x408]
push eax
push 4
lea eax, [ebp - 0x1528]
push eax
push 0
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea edi, [ebp - 0x151c]
nop dword [eax]
cmp byte [ebp + esi - 0x1524], 0
je 0x4097bd
mov eax, esi
shr eax, 1
cmp byte [ebp + eax - 0x1528], 0
je 0x4097bd
xor eax, eax
mov edx, edi
nop dword [eax]
movzx ecx, word [edx]
lea edx, [edx + 2]
mov dword [ebp + eax*4 - 0x404], ecx
inc eax
cmp eax, 0x100
jl 0x409790
lea eax, [ebp - 0x404]
push eax
push ecx
mov ecx, dword [ebp - 0x1530]
call fcn.00409310
mov ebx, 1
inc esi
add edi, 0x200
cmp esi, 8
jb 0x409770
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push eax
call esi
mov eax, dword [ebp - 0x152c]
inc eax
mov dword [ebp - 0x152c], eax
cmp eax, 0xa
jl 0x4096d0
mov esi, dword [ebp - 0x1530]
pop edi
mov ecx, dword [esi + 0x214]
mov eax, 0x4bda12f7
sub ecx, dword [esi + 0x210]
imul ecx
mov ecx, dword [ebp - 4]
sar edx, 7
xor ecx, ebp
mov eax, edx
shr eax, 0x1f
pop esi
add eax, edx
pop ebx
call fcn.00423c15
mov esp, ebp
pop ebp
ret
Function at 0x40e560
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
mov eax, dword [0x6ee06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ecx + 0x68]
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40e59a
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e5e3
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40e5b6
mov eax, dword [esi]
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.004c16bd
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40e5df
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov byte [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x40e5eb
mov esi, dword [esi]
push esi
push 0x3a8
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0040abe0
lea eax, [ebp - 0x28]
push eax
call fcn.004c0344
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x40e613
mov eax, dword [eax]
push eax
push 0x6d8f6c
push str.UserID
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40e65a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e650
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e69c
push edx
push ecx
call fcn.00424265
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x40e68a
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e680
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e6a1
push edx
push ecx
call fcn.00424265
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x18
call fcn.004eb7f6
call fcn.004eb7f6
int3
Function at 0x40e6b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652d28
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x6ee06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea edx, [ecx + 0x80]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00410010
add esp, 4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e74a
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004c16bd
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x40e746
mov edx, dword [ecx]
lea eax, [ebp - 0x58]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x3a8
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0040abe0
lea eax, [ebp - 0x48]
push eax
call fcn.004c0344
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x40e77d
mov eax, dword [eax]
push eax
push 0x6d8f6c
push str.UserID
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x40e7c8
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e7be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e85d
push edx
push ecx
call fcn.00424265
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40e7fe
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e7f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e862
push edx
push ecx
call fcn.00424265
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 0x10
jb 0x40e842
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e838
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e867
push edx
push ecx
call fcn.00424265
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423c15
mov esp, ebp
pop ebp
ret 0x18
call fcn.004eb7f6
call fcn.004eb7f6
call fcn.004eb7f6
int3