joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c750
Capabilities:
Hash data using sha256

Disassembly:
push ebp
xor eax, eax
push edi
push esi
mov esi, edx
push ebx
sub esp, 0xac
lea ebx, [esp + 0x38]
mov dword [esp + 0x24], ecx
mov ecx, 0x1a
mov edi, ebx
mov dword [esp + 0x20], edx
rep stosd dword es:[edi], eax
mov dword [esp], 0x4481cc
mov dword [esp + 0x40], 0x6a09e667
mov dword [esp + 0x44], 0xbb67ae85
mov dword [esp + 0x48], 0x3c6ef372
mov dword [esp + 0x4c], 0xa54ff53a
mov dword [esp + 0x50], 0x510e527f
mov dword [esp + 0x54], 0x9b05688c
mov dword [esp + 0x58], 0x1f83d9ab
mov dword [esp + 0x5c], 0x5be0cd19
call fcn.00438340
cmp byte [eax], 0
mov dword [esp + 0x1c], eax
jne 0x42c837
test esi, esi
jle 0x42c814
mov eax, 0x40
mov edi, dword [esp + 0x24]
mov dword [esp + 0x28], esi
cmp esi, eax
cmovle eax, esi
xor esi, esi
xor edx, edx
lea edx, [ebx + edx + 0x28]
add edi, esi
cmp eax, 4
jae 0x42c8b7
test eax, eax
jne 0x42c910
lea edi, [eax + esi]
mov edx, eax
xor esi, edi
xor edx, edi
test esi, edx
jns 0x42c848
call fcn.004083d0
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
jne 0x42c837
mov edx, dword [esp + 0xc0]
mov ecx, ebx
call fcn.0042e8b0
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
jne 0x42c837
mov edx, 0x68
mov ecx, ebx
call fcn.0042c700
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov ecx, dword [esp + 0x28]
mov ebp, ecx
sub ebp, eax
xor ecx, ebp
mov edx, ecx
mov ecx, eax
not edx
xor ecx, ebp
or edx, ecx
jns 0x42c806
add eax, dword [esp + 0x38]
mov dword [esp + 0x38], eax
jae 0x42c86d
add dword [esp + 0x3c], 1
test al, 0x3f
je 0x42c930
test ebp, ebp
jle 0x42c80b
mov edx, dword [esp + 0x38]
mov eax, 0x40
and edx, 0x3f
sub eax, edx
cmp eax, ebp
cmovg eax, ebp
test edi, edi
js 0x42c959
cmp dword [esp + 0x20], edi
jle 0x42c959
mov esi, edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
lea edx, [ebx + edx + 0x28]
add edi, esi
cmp eax, 4
jb 0x42c7f1
mov ecx, dword [edi]
lea ebp, [edx + 4]
and ebp, 0xfffffffc
mov dword [edx], ecx
mov ecx, dword [edi + eax - 4]
mov dword [edx + eax - 4], ecx
sub edx, ebp
sub edi, edx
add edx, eax
and edx, 0xfffffffc
cmp edx, 4
jb 0x42c7f9
mov dword [esp + 0x2c], eax
and edx, 0xfffffffc
xor ecx, ecx
mov eax, dword [edi + ecx]
mov dword [ebp + ecx], eax
add ecx, 4
cmp ecx, edx
jb 0x42c8e4
mov eax, dword [esp + 0x2c]
lea edi, [eax + esi]
mov edx, eax
xor esi, edi
xor edx, edi
test esi, edx
jns 0x42c848
jmp 0x42c806
movzx ecx, byte [edi]
mov byte [edx], cl
test al, 2
je 0x42c7f9
movzx ecx, word [edi + eax - 2]
mov word [edx + eax - 2], cx
jmp 0x42c7f9
mov dword [esp], 0x40
lea edx, [esp + 0x60]
lea ecx, [esp + 0x40]
call fcn.0042c980
sub esp, 4
mov eax, dword [esp + 0x1c]
cmp byte [eax], 0
je 0x42c875
jmp 0x42c837
mov eax, dword [esp + 0x20]
mov dword [esp], edi
sub eax, 1
mov dword [esp + 4], eax
call fcn.0040b140
jmp 0x42c80b
Function at 0x436d98
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.0043dd3c
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.0043dd3c
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x4378e8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x437907
mov eax, 0
jmp 0x43794b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x43792a
mov eax, 0
jmp 0x43794b
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x437946
mov eax, 0
jmp 0x43794b
mov eax, 1
leave
ret

Function at 0x43794d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4379ac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x4379a4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x4379a4
mov eax, dword [ebp - 4]
jmp 0x4379c0
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x437981
mov eax, 0
leave
ret
Function at 0x43ee4d
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
add esp, 0xffffff80
cmp dword [ebp + 8], 0
je 0x43ef66
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00442c34
cmp eax, 1
jne 0x43ef5c
mov dword [ebp - 0x77], 0x6f727245
mov dword [ebp - 0x73], 0x6c632072
mov dword [ebp - 0x6f], 0x696e6165
mov dword [ebp - 0x6b], 0x7520676e
mov dword [ebp - 0x67], 0x70732070
mov dword [ebp - 0x63], 0x6b5f6e69
mov dword [ebp - 0x5f], 0x20737965
mov dword [ebp - 0x5b], 0x20726f66
mov dword [ebp - 0x57], 0x65726874
mov dword [ebp - 0x53], 0x206461
lea eax, [ebp - 0x4f]
mov ecx, 0x43
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x77]
add edx, 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x43ef12
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x43ef29
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x43ef0e
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x43ef47
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x77]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sub.msvcrt.dll_abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x43ef67
nop
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x43ff01
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 4], 0x43fd6e
mov dword [esp], 0x6e0d60
call fcn.0043f4c2
mov eax, dword [0x4486ac]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x43ff48
mov eax, dword [ebp - 0x20]
jmp 0x440093
call fcn.0043ed56
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x43ff5f
cmp dword [ebp - 0x20], 0
jne 0x43ff69
mov eax, 0
jmp 0x440093
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0043ee4d
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
test eax, eax
jne 0x44003b
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x20]
and edx, 0xffffffcf
or edx, 0x10
mov byte [eax + 0x20], dl
mov eax, dword [0x4486ac]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
test eax, eax
jne 0x440090
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x440157
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.0043ff01
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call fcn.0043fd92
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x4401b2
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_longjmp]
call eax
mov eax, dword [0x4486ac]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4402dc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x440244
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x440201
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0043ec64
mov dword [ebp - 0x10], 0
mov eax, dword [0x4486ac]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
jmp 0x4402dc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x440274
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x4402dc
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0043ec64
mov dword [ebp - 0x10], 0
mov eax, dword [0x4486ac]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__endthreadex]
call eax
Function at 0x407050
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6528b1
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.00434b00
mov ecx, dword [esi + 0x54]
call fcn.0042b190
push eax
push dword [esi + 0x590]
call dword [0x6fe4bc]
lea eax, [ebp - 0x90]
push eax
call fcn.0042ae90
add esp, 0xc
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00439c90
push eax
push dword [esi + 0x590]
call dword [0x6fe630]
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.00434b00
lea eax, [ebp - 0x90]
push eax
call fcn.0042ae90
add esp, 4
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00439c90
push eax
push dword [esi + 0x590]
call dword [0x6fe654]
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.00434b00
push str.WkeBrowser
push dword [esi + 0x590]
call dword [0x6fe3a0]
push 1
push dword [esi + 0x590]
call dword [0x6fe434]
push 0
push dword [esi + 0x590]
call dword [0x6fe2d4]
push 0
push dword [esi + 0x590]
call dword [0x6fe5fc]
lea eax, [ebp - 0x114]
push eax
call fcn.0042ae90
add esp, 0x24
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00439c90
push eax
push dword [esi + 0x590]
call dword [0x6fe544]
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call fcn.00434b00
mov ecx, dword [esi + 0x54]
call fcn.0042b670
movzx eax, al
push eax
push dword [esi + 0x590]
call dword [0x6fe518]
push 0
push dword [esi + 0x590]
call dword [0x6fe69c]
push esi
push 0x407d10
push dword [esi + 0x590]
call dword [0x6fe3f8]
push esi
push 0x407d50
push dword [esi + 0x590]
call dword [0x6fe258]
push esi
push 0x407df0
push dword [esi + 0x590]
call dword [0x6fe68c]
push esi
push 0x407e60
push dword [esi + 0x590]
call dword [0x6fe368]
add esp, 0x40
push esi
push 0x407ea0
push dword [esi + 0x590]
call dword [0x6fe390]
push esi
push 0x407ed0
push dword [esi + 0x590]
call dword [0x6fe468]
push esi
push 0x407f10
push dword [esi + 0x590]
call dword [0x6fe3f0]
push esi
push 0x408040
push dword [esi + 0x590]
call dword [0x6fe1a4]
push esi
push 0x407cf0
push dword [esi + 0x590]
call dword [0x6fe62c]
push esi
push 0x407db0
push dword [esi + 0x590]
call dword [0x6fe2a4]
add esp, 0x48
push esi
push 0x407ff0
push dword [esi + 0x590]
call dword [0x6fe4b8]
push esi
push 0x408000
push dword [esi + 0x590]
call dword [0x6fe180]
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 [0x6fe5c0]
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.00429c20
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 0x6528f1
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 [0x6fe0f8]
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.004e7e30
add esp, 0xc
lea ecx, [ebp - 0x324]
push 0xffffffffffffffff
push 0
call fcn.00439860
lea ecx, [ebp - 0x324]
mov dword [ebp - 4], 0
call fcn.0043a8f0
test al, al
je 0x4076fd
push 0x6fe728
lea ecx, [ebp - 0x324]
call fcn.00439b50
push 0x84
lea eax, [ebp - 0x2a0]
push 0
push eax
call fcn.004e7e30
add esp, 0xc
lea eax, [ebp - 0x324]
lea ecx, [ebp - 0x2a0]
push eax
call fcn.00439820
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 1
call fcn.00439c90
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.004e7e30
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.004e7511
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.00439b80
lea ecx, [ebp - 0x324]
call fcn.00439c90
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00439ed0
lea ecx, [ebp - 0x2a0]
call fcn.00439c90
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.00439c90
mov dword [str.node.dll], eax
call fcn.00403ee0
push 2
push 0
push 0x408080
push str.jsExternal
call dword [0x6fe20c]
add esp, 0x10
push 0x406d10
sub esp, 0x84
mov ecx, esp
mov dword [ebp - 0x328], esp
push 0xffffffffffffffff
push str.CWkeWebkitUI
call fcn.00439860
mov byte [ebp - 4], 2
call fcn.004651b0
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00465280
mov eax, dword [0x6fe0f8]
test eax, eax
je 0x407834
call eax
test eax, eax
setne bl
lea ecx, [ebp - 0x2a0]
call fcn.00434b00
lea ecx, [ebp - 0x324]
call fcn.00434b00
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.00423e75
mov esp, ebp
pop ebp
ret
Function at 0x4096b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1530
call fcn.00425210
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.004e7e30
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 0x409720
mov ecx, esi
call fcn.00408f50
jmp 0x409857
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov dword [ebp - 0x152c], ebx
push edi
nop dword [eax]
test ebx, ebx
jne 0x409850
push 0x100
mov dword [ebp - 0x408], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x409764
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.004e7e30
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 0x4097c1
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 0x40981d
mov eax, esi
shr eax, 1
cmp byte [ebp + eax - 0x1528], 0
je 0x40981d
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 0x4097f0
lea eax, [ebp - 0x404]
push eax
push ecx
mov ecx, dword [ebp - 0x1530]
call fcn.00409370
mov ebx, 1
inc esi
add edi, 0x200
cmp esi, 8
jb 0x4097d0
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 0x409730
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.00423e75
mov esp, ebp
pop ebp
ret
Function at 0x40e5f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652d70
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 0x40e62a
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e673
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40e646
mov eax, dword [esi]
lea ecx, [ebp - 0x38]
push ecx
push eax
call fcn.004c0ce1
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40e66f
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 0x40e67b
mov esi, dword [esi]
push esi
push 0x3a8
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0040ac50
lea eax, [ebp - 0x28]
push eax
call fcn.004bfac4
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x40e6a3
mov eax, dword [eax]
push eax
push 0x6d8f0c
push str.UserID
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40e6ea
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e6e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e72c
push edx
push ecx
call fcn.004244c5
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x40e71a
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e710
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e731
push edx
push ecx
call fcn.004244c5
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.004eb826
call fcn.004eb826
int3
Function at 0x40e740
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x652da8
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.00410290
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 0x40e7da
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.004c0ce1
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x40e7d6
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.0040ac50
lea eax, [ebp - 0x48]
push eax
call fcn.004bfac4
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x40e80d
mov eax, dword [eax]
push eax
push 0x6d8f0c
push str.UserID
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x40e858
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e84e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e8ed
push edx
push ecx
call fcn.004244c5
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40e88e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e884
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e8f2
push edx
push ecx
call fcn.004244c5
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 0x40e8d2
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e8c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e8f7
push edx
push ecx
call fcn.004244c5
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.00423e75
mov esp, ebp
pop ebp
ret 0x18
call fcn.004eb826
call fcn.004eb826
call fcn.004eb826
int3