joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a39d
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x41a3b4
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x41a3c7
and dword [eax + 8], 0
call fcn.0041c6b4
mov eax, dword [esi + 4]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 4]
and dword [eax + 4], 0
pop esi
pop ebx
ret

Function at 0x422d61
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x469e23
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4976a0]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x4976a0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x422e05
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], str.Destination_buffer_cant_be_NULL
call fcn.0044aaac
mov dword [esp + 0x20], vtable.std::invalid_argument.0
mov dword [esp + 0x80], ebx
lea eax, [esp + 0x48]
push eax
lea esi, [esp + 0x18]
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u251_737_install_src_common_share_tstrings.cpp
mov dword [esp + 0x1c], str.tstrings::unsafe_format
mov dword [esp + 0x20], 0x1b
call fcn.0042367c
lea eax, [esp + 0x4c]
mov dword [esp], 0x48792c
push eax
call fcn.00452164
push 0xf
pop esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
mov dword [esp + 0x80], 1
mov eax, dword [esp + 0x3c]
add eax, 0x100
lea ecx, [esp + 0x2c]
call fcn.00418af2
cmp dword [esp + 0x40], 0x10
mov eax, dword [esp + 0x2c]
jae 0x422e40
lea eax, [esp + 0x2c]
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 8]
push 0xffffffffffffffff
push dword [esp + 0x48]
push eax
call fcn.0044fe88
add esp, 0x14
cmp eax, 0xffffffff
je 0x422e1f
lea ecx, [esp + 0x2c]
call fcn.00418af2
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
lea esi, [esp + 0x2c]
mov byte [edi], bl
call fcn.00403055
push ebx
push 1
mov ecx, esi
call fcn.0040320c
mov eax, edi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0044a659
mov esp, ebp
pop ebp
ret
Function at 0x42b908
Capabilities:
Get common file path

Disassembly:
push 0x20c
mov eax, 0x46d655
call fcn.004525fd
xor esi, esi
push 0x104
lea eax, [ebp - 0x118]
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x170], esi
call fcn.0044c700
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push esi
push esi
push 0x8023
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov ebx, eax
cmp ebx, esi
je 0x42ba36
lea eax, [ebp - 0x218]
push eax
call fcn.00402774
lea eax, [ebp - 0x218]
push str.SHGetFolderPath_0x
push eax
mov dword [ebp - 4], esi
call fcn.0040560b
mov eax, dword [ebp - 0x218]
mov eax, dword [eax + 4]
pop ecx
lea eax, [ebp + eax - 0x218]
pop ecx
mov ecx, dword [eax + 0x14]
and ecx, 0xfffff9ff
or ecx, 0x800
mov dword [eax + 0x14], ecx
push 0x23
lea eax, [ebp - 0x218]
push eax
call 0x40aa33
lea eax, [ebp - 0x218]
push str.__mode
push eax
call fcn.0040560b
pop ecx
pop ecx
push 1
lea eax, [ebp - 0x218]
push eax
call 0x40aa33
lea eax, [ebp - 0x218]
push 0x47a530
push eax
call fcn.0040560b
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
lea edi, [ebp - 0x180]
call fcn.00434e69
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 1
push ecx
lea esi, [ebp - 0x16c]
mov ecx, eax
mov dword [ebp - 0x16c], str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u251_737_install_src_windows_common_SysInfo.cpp
mov dword [ebp - 0x168], str.SysInfo::SHGetFolderPathAdapter
mov dword [ebp - 0x164], 0x1bf
call fcn.0042be5a
lea eax, [ebp - 0x160]
mov dword [esp], 0x487b68
push eax
call fcn.00452164
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x134]
call fcn.00402450
lea edx, [ebp - 0x134]
mov eax, edi
mov dword [ebp - 4], 2
call fcn.0042c7d8
push esi
push 1
lea ecx, [ebp - 0x134]
call fcn.0040320c
mov eax, edi
call fcn.00452680
ret
Function at 0x42c56c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 0x10
jb 0x42c574
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret

Function at 0x42c584
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [eax + 0x14], 0x10
jb 0x42c58c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42c5a0
test al, 0x10
je 0x42c5a0
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x43769c
Capabilities:
Create thread

Disassembly:
push 0x78
mov eax, 0x46e96d
call fcn.004525fd
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x5c], eax
cmp esi, ebx
jne 0x4376be
or dword [eax], 0xffffffff
jmp 0x4377a4
mov dword [ebp - 0x60], ebx
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 4], ebx
call fcn.0043726d
mov byte [ebp - 4], 1
or dword [ebp - 0x40], 0xffffffff
lea eax, [ebp - 0x58]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x40]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push 0x437681
push ebx
push ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ebx
call fcn.004507c3
mov edi, eax
add esp, 0x18
cmp edi, ebx
jne 0x43773e
lea esi, [ebp - 0x78]
call fcn.00436f7a
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
push ecx
lea esi, [ebp - 0x6c]
mov ecx, eax
mov dword [ebp - 0x6c], str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u251_737_install_src_ipc_windows_ThreadImpl.cpp
mov dword [ebp - 0x68], str.ipc::Thread::start
mov dword [ebp - 0x64], 0x70
call fcn.0043733a
lea eax, [ebp - 0x3c]
mov dword [esp], 0x487cf8
push eax
call fcn.00452164
lea eax, [ebp - 0x58]
lea esi, [ebp - 0x84]
call fcn.00436d5b
lea eax, [ebp - 0x58]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 3
push 1
push dword [ebp - 0x50]
mov dword [ebp - 0x44], edi
call fcn.00437102
jmp 0x437777
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 8]
call fcn.00436f9a
cmp dword [ebp - 0x44], ebx
jne 0x437765
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.00436da5
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 0x5c]
mov dword [esi], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x60], ebx
mov byte [ebp - 4], bl
call fcn.004372e1
mov eax, esi
call fcn.00452680
ret

Function at 0x439424
Capabilities:
Check mutex on windows

Disassembly:
push 0xa8
mov eax, 0x46ce05
call fcn.00452594
push str.Global_MSIExecute
xor esi, esi
push esi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 1
mov dword [ebp - 4], esi
cmp eax, esi
je 0x4394f6
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], esi
je 0x4394d6
cmp dword [0x49c100], 1
jg 0x4394d6
lea eax, [ebp - 0xb4]
push eax
call fcn.00402774
lea eax, [ebp - 0xb4]
push str.finish_waiting_for_mutex:
push eax
mov byte [ebp - 4], 1
call fcn.0040560b
pop ecx
pop ecx
push dword [ebp - 0x14]
lea eax, [ebp - 0xb4]
push eax
call fcn.004043b1
lea eax, [ebp - 0xb4]
push eax
push 0x1c8
push 1
mov ebx, str.msi::waitForInstallationCompletion
mov edi, str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_jdk8u251_737_install_src_windows_common_MsiUtils.cpp
mov esi, 0x49c100
call fcn.004016a9
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 0
call fcn.004015cb
cmp dword [ebp - 0x14], 0x102
jne 0x4394f6
xor bl, bl
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x1c]
call fcn.0043af52
pop ecx
mov al, bl
call fcn.0045266c
ret
mov bl, 1
jmp 0x4394e1
Function at 0x443f88
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46ab27
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4976a0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.00440b7e
mov cl, byte [eax + 4]
mov edi, dword [eax]
mov byte [esp + 0x10], cl
mov dword [esp + 0x1c], edi
mov byte [eax + 4], bl
mov dword [esp + 0x2c], edi
mov byte [esp + 0x30], cl
mov dword [esp + 0x50], ebx
cmp byte [esp + 0x18], bl
je 0x443ff3
push dword [esp + 0x14]
mov byte [esp + 0x1c], bl
call fcn.004493c4
pop ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov esi, 0x100001
lea eax, [esp + 0x34]
mov byte [esp + 0x50], 1
call fcn.0042a5ca
push edi
mov edi, dword [esp + 0x38]
dec esi
push esi
push 1
push edi
call fcn.00451976
add esp, 0x10
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x444047
push 0xc8
lea esi, [esp + 0x20]
call fcn.0041154e
push 0x4877a4
mov eax, esi
push eax
call fcn.00452164
push dword [esp + 0x1c]
call fcn.00451704
pop ecx
test eax, eax
je 0x44406c
push 0x133
lea esi, [esp + 0x20]
call fcn.0041154e
push 0x4877a4
mov eax, esi
jmp 0x444041
push dword [esp + 0x1c]
call fcn.004516dc
pop ecx
test eax, eax
jne 0x444091
push 0x13b
lea esi, [esp + 0x20]
call fcn.0041154e
push 0x4877a4
mov eax, esi
jmp 0x444041
mov esi, dword [esp + 0x14]
mov ecx, esi
mov eax, edi
call fcn.00443f54
lea eax, [edi + esi]
mov esi, dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp edi, eax
je 0x4440bf
sub eax, edi
push eax
push edi
mov ecx, esi
call fcn.004036b9
cmp edi, ebx
je 0x4440ca
push edi
call fcn.0044a64e
pop ecx
cmp byte [esp + 0x10], bl
je 0x4440da
push dword [esp + 0x1c]
call fcn.004493c4
pop ecx
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x444332
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x4976a0]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0x14
mov eax, 0x46a150
call fcn.00452594
xor esi, esi
lea eax, [ebp + 0x38]
push eax
push esi
push esi
push 0x2c
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, esi
je 0x444388
push 0xc8
lea esi, [ebp - 0x20]
call fcn.0041154e
push 0x4877a4
mov eax, esi
push eax
call fcn.00452164
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp]
call fcn.0041e23e
push 0x482364
push eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 4], esi
call fcn.0043aae7
push ebx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00443086
add esp, 0xc
push 1
xor edi, edi
lea esi, [ebp + 0x1c]
call fcn.00419c92
push 1
lea esi, [ebp]
call fcn.00419c92
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 + 0x240]
xor ecx, ebp
call fcn.0044a659
add ebp, 0x244
leave
ret
Function at 0x445616
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, eax
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
jl 0x445696
jg 0x445642
cmp esi, ecx
jbe 0x445696
cmp dword [ebp + 0x14], ecx
jg 0x445642
jl 0x44563e
cmp esi, 0x7fffffff
jae 0x445642
mov eax, esi
jmp 0x445647
mov eax, SysReAllocString
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 4], ecx
je 0x445687
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x445671
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x445691
jmp 0x445687
mov eax, dword [ebp - 4]
test eax, eax
jle 0x445682
add ebx, eax
cdq
sub esi, eax
sbb dword [ebp + 0x14], edx
jmp 0x445622
cmp eax, 0xffffffff
jne 0x445691
call fcn.004508a5
cmp dword [eax], 4
je 0x445622
or eax, 0xffffffff
jmp 0x445698
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x4257b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
or ebp, 0xffffffff
jmp 0x4257d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4257d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4257c8
mov eax, 1
add ebx, ebx
jne 0x4257eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4257e0
jne 0x4257fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4257e0
xor ecx, ecx
sub eax, 3
jb 0x425810
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x425882
mov ebp, eax
add ebx, ebx
jne 0x42581b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x425828
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42584c
inc ecx
add ebx, ebx
jne 0x425838
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42582d
jne 0x425849
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42582d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42586c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42585d
jmp 0x4257ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42586c
add edi, ecx
jmp 0x4257ce
pop esi
mov edi, esi
mov ecx, 0x1013
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42588a
cmp byte [edi], 5
jne 0x42588a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42588f
lea edi, [esi + 0x23000]
mov eax, dword [edi]
or eax, eax
je 0x4258fe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x25000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x25028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4258bc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2502c]
or eax, eax
je 0x4258f8
mov dword [ebx], eax
add ebx, 4
jmp 0x4258d9
call dword [esi + 0x2503c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x42592f
cmp al, 0xef
ja 0x425922
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x425904
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x425911
mov ebp, dword [esi + 0x25030]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x425963
sub esp, 0xffffff80
jmp 0x40eda7
Function at 0x401b60
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401bbb
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
lea edx, [ebp - 0xc]
push edx
push 0
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.dbghelp.dll_MiniDumpWriteDump
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402870
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4185c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x423040]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [0x424824]
cmp esi, dword [0x424828]
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jbe 0x4028b2
call ebx
mov edi, esi
jmp 0x4028c0
mov esi, dword [0x424828]
cmp dword [0x424824], esi
jbe 0x4028d0
call ebx
cmp edi, esi
je 0x402914
cmp edi, dword [0x424828]
jb 0x4028de
call ebx
mov esi, dword [edi]
test esi, esi
je 0x402905
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402905
mov ecx, dword [esi + 0xc]
push 1
push 1
push 0x405
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
cmp edi, dword [0x424828]
jb 0x40290f
call ebx
add edi, 4
jmp 0x4028c0
call dword [sym.imp.LiveLog.DLL_int___cdecl_IsDoLog_void_]
test eax, eax
je 0x4029bf
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.LiveLog.DLL_class_ATL::CComBSTR___cdecl_GetUserAppDataPath3_void_]
add esp, 4
mov dword [esp + 0x28], 0
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.0040a380
mov byte [esp + 0x28], 2
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 4
push str.Log_
lea eax, [esp + 0x1c]
push eax
call fcn.0040a2f0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402997
push 0x12
push 0x41aa18
lea edx, [esp + 0x1c]
push edx
call fcn.0040a2f0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esp + 0x18]
call fcn.00401b60
add esp, 4
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4029bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4064f0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0x811c9dc5
cmp esi, 0xfffffffe
je 0x406518
test esi, esi
je 0x406512
cmp esi, dword [ebp + 0x10]
je 0x406518
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp edi, dword [ebp + 0x14]
je 0x406592
cmp esi, 0xfffffffe
mov ebx, edi
je 0x40654c
test esi, esi
jne 0x40652e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esi + 0x18], 8
jb 0x406539
mov eax, dword [esi + 4]
jmp 0x40653c
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ecx*2]
cmp edi, edx
jb 0x40654c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add edi, 2
cmp esi, 0xfffffffe
je 0x40657c
test esi, esi
jne 0x40655e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [esi + 0x18], 8
jb 0x406569
mov eax, dword [esi + 4]
jmp 0x40656c
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ecx*2]
cmp ebx, edx
jb 0x40657c
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 4]
movzx ecx, word [ebx]
imul eax, eax, 0x1000193
xor eax, ecx
mov dword [ebp - 4], eax
jmp 0x406504
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a4e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a4f7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a528
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40a524
cmp esi, eax
jae 0x40a528
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x40a514
cmp esi, eax
jb 0x40a52e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x413e70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
push 0x413e40
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.0040a810
cmp byte [0x424720], 0
je 0x413eb3
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
call fcn.00401db0
cmp al, 1
jne 0x413ecd
call fcn.00402430
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x414050
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418a77
mov eax, dword fs:[0]
push eax
mov eax, 0x1228
call fcn.00416470
mov eax, dword [0x423040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push 0x208
lea eax, [ebp - 0x21a]
push esi
push eax
mov word [ebp - 0x21c], si
call sub.MSVCR80.dll_memset
mov edx, dword [0x424300]
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffe
lea eax, [ebp - 0x121a]
push esi
push eax
mov word [ebp - 0x121c], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x7ff
lea ecx, [ebp - 0x121c]
push ecx
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [ebp - 0x121c]
push edx
push 0x41bae8
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esp
mov dword [ebp - 0x1234], esp
push eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t__]
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x1228]
push ecx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_Util::FS::GetParentDir_class_CTXStringW_]
mov dword [ebp - 4], 1
push eax
lea edx, [ebp - 0x1224]
push 0x22
push edx
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_wchar_t__class_CTXStringW_const__]
add esp, 0x14
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.Common.dll_class_CTXStringW___cdecl_operator_class_CTXStringW_const___wchar_t_const__]
push eax
lea eax, [ebp - 0x1230]
push eax
call esi
add esp, 0xc
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x122c]
push ecx
call esi
add esp, 0xc
mov byte [ebp - 4], 4
mov ecx, eax
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
lea edx, [ebp - 0x1220]
push edx
mov ecx, eax
call fcn.0040a380
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x122c]
call esi
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1230]
call esi
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x1224]
call esi
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1228]
call esi
mov eax, dword [ebp - 0x1220]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1220]
call fcn.0040fc00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415b49
mov esp, ebp
pop ebp
ret