joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444a2c
Capabilities:
Allocate thread local storage

Disassembly:
push 0x5c
mov eax, 0x467909
call fcn.00451246
xor ebx, ebx
mov dword [ebp - 0x68], 0xc15730e2
mov dword [ebp - 0x64], 0x7f0725e3
mov byte [ebp - 0x60], bl
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x58], bl
mov eax, dword [0x49d9a0]
cmp eax, dword [ebp - 0x68]
je 0x444b7a
mov edi, 0x49d9a0
mov ecx, dword [ebp - 0x64]
mov edx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
cmp eax, ebx
je 0x444add
cmp byte [ebp - 0x60], bl
jne 0x444ac3
xor ecx, ecx
mov eax, 0x49d9a4
inc ecx
lock xadd dword [eax], ecx
mov eax, dword [0x49d9a0]
mov byte [ebp - 0x60], 1
cmp eax, dword [ebp - 0x68]
je 0x444b7a
cmp dword [ebp - 0x5c], ebx
jne 0x444ac3
cmp byte [ebp - 0x58], bl
jne 0x444aaa
lea ebx, [ebp - 0x58]
call fcn.004449d3
xor ebx, ebx
lea eax, [ebp - 0x58]
push eax
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
lea esi, [ebp - 0x5c]
call fcn.0041996b
jmp 0x444ace
push 0xffffffffffffffff
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x49d9a0]
cmp eax, dword [ebp - 0x68]
jne 0x444a64
jmp 0x444b7a
cmp dword [ebp - 0x5c], ebx
jne 0x444b0f
cmp byte [ebp - 0x58], bl
jne 0x444af1
lea ebx, [ebp - 0x58]
call fcn.004449d3
xor ebx, ebx
lea eax, [ebp - 0x58]
push eax
push ebx
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push eax
lea esi, [ebp - 0x5c]
call fcn.0041996b
cmp dword [ebp - 0x5c], ebx
je 0x444b18
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
call fcn.00444e01
cmp byte [ebp - 0x60], bl
jne 0x444b32
xor ecx, ecx
mov eax, 0x49d9a4
inc ecx
lock xadd dword [eax], ecx
mov byte [ebp - 0x60], 1
mov eax, dword [ebp - 0x68]
xchg dword [edi], eax
cmp dword [ebp - 0x5c], ebx
jne 0x444b71
mov eax, dword [0x49d9a4]
cmp eax, 1
jle 0x444b6c
cmp byte [ebp - 0x58], bl
jne 0x444b55
lea ebx, [ebp - 0x58]
call fcn.004449d3
xor ebx, ebx
lea eax, [ebp - 0x58]
push eax
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
lea esi, [ebp - 0x5c]
call fcn.0041996b
cmp dword [ebp - 0x5c], ebx
je 0x444b7a
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [ebp - 0x5c]
call fcn.00419988
call fcn.004512c9
ret
Function at 0x445522
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x20
mov eax, 0x46bf23
call fcn.00451210
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov ecx, esi
mov dword [esi + 0x18], 0xf
call fcn.00407df0
push str.Failed_CryptAcquireContext
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00406ce0
push 0xf0000000
push 1
push ebx
push ebx
lea edi, [esi + 0x1c]
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, ebx
jne 0x445575
lea eax, [ebp - 0x2c]
call fcn.0042f9de
lea ecx, [ebp - 0x2c]
call fcn.00406d50
push str.Failed_CryptCreateHash
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00406ce0
lea eax, [esi + 0x20]
push eax
push ebx
push ebx
push 0x8003
mov byte [ebp - 4], 3
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp eax, ebx
jne 0x4455b1
lea eax, [ebp - 0x2c]
call fcn.0042f9de
lea ecx, [ebp - 0x2c]
call fcn.00406d50
mov eax, esi
call fcn.004512b5
ret 4

Function at 0x4455f5
Capabilities:
Hash data via wincrypt

Disassembly:
push 0x428
mov eax, 0x46d63d
call fcn.00451246
mov eax, dword [ebp + 8]
mov dword [ebp - 0x418], eax
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ecx + 0x28]
neg eax
sbb eax, eax
and eax, 0xfffffffc
xor edi, edi
add eax, 4
push edi
push eax
call fcn.00401570
push edi
call fcn.004313ce
push 0x400
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.00431573
mov ebx, dword [esi + 4]
push str.Failed_CryptHashData
lea ecx, [ebp - 0x434]
call fcn.00406ce0
push edi
push ebx
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0x418]
mov dword [ebp - 4], edi
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp eax, edi
jne 0x445681
lea eax, [ebp - 0x434]
call fcn.0042f9de
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x434]
call fcn.00406d50
cmp dword [esi + 4], edi
jg 0x445632
call fcn.004512c9
ret 4
Function at 0x446b46
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x14
mov eax, 0x46d589
call fcn.00451210
mov esi, dword [ebp + 0x14]
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x446b66
mov eax, dword [edi]
jmp 0x446b68
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x446bd0
cmp dword [esi + 0x18], 8
jb 0x446b7d
mov eax, dword [edi]
jmp 0x446b7f
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x446bd0
lea eax, [ebp - 0x14]
push eax
call fcn.0042fa0c
pop ecx
mov byte [ebp - 4], 1
cmp dword [esi + 0x18], 8
mov ebx, dword [eax]
jb 0x446ba9
mov edi, dword [edi]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0xc]
push ebx
push edi
push str.Failed_to_delete_fileName__S_:__S
mov esi, eax
call fcn.00406fa0
add esp, 0xc
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0040c440
mov ebx, dword [ebp + 0x10]
cmp dword [ebx + 0x18], 8
lea esi, [ebx + 4]
jb 0x446be0
mov eax, dword [esi]
jmp 0x446be2
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x446c4a
cmp dword [ebx + 0x18], 8
jb 0x446bf7
mov eax, dword [esi]
jmp 0x446bf9
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x446c4a
lea eax, [ebp - 0x18]
push eax
call fcn.0042fa0c
pop ecx
mov byte [ebp - 4], 2
cmp dword [ebx + 0x18], 8
mov edi, dword [eax]
jb 0x446c23
mov esi, dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0xc]
push edi
push esi
push str.Failed_to_delete_path__S_:__S
mov esi, eax
call fcn.00406fa0
add esp, 0xc
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0040c440
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ecx + 4], al
push 0
sete al
push str.SoftwareCruRevRegETags
add eax, 0x80000001
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0042fb3b
mov eax, dword [ebp + 0xc]
add esp, 0x10
cmp dword [eax + 0x18], 8
jb 0x446c7c
mov eax, dword [eax + 4]
jmp 0x446c7f
add eax, 4
push 1
push eax
lea eax, [ebp - 0x20]
push eax
mov esi, 0x475c54
call fcn.0040b390
lea esi, [ebp - 0x20]
call fcn.0040b400
call fcn.004512b5
ret 0x10
Function at 0x447698
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46aa34
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x493350]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x493350]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
push 0x100001
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x278], ebx
cmp eax, ebx
je 0x447897
lea eax, [esp + 0x5c]
push eax
push 0x44763f
mov dword [esp + 0x64], edi
mov byte [esp + 0x68], bl
call dword [sym.imp.USER32.dll_EnumWindows]
mov byte [esp + 0x17], bl
cmp byte [esp + 0x60], bl
je 0x447864
mov edi, dword [esi + 8]
imul edi, edi, 0xa
mov byte [esi + 0x58], 1
mov dword [esp + 0x18], edi
cmp dword [esp + 0x18], 0
jle 0x447778
push 0x64
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x447752
mov byte [esp + 0x17], 1
dec dword [esp + 0x18]
mov eax, dword [esi + 0x10]
inc ebx
test eax, eax
je 0x44779d
push edi
lea ecx, [esi + 0x18]
push ebx
and eax, 0xfffffffe
push ecx
call dword [eax + 4]
add esp, 0xc
test al, al
je 0x4477b4
cmp byte [esp + 0x17], 0
je 0x447733
cmp byte [esp + 0x17], 0
jne 0x44788d
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x4477cc
lea esi, [esp + 0x34]
call fcn.0043342d
mov byte [esp + 0x278], 2
jmp 0x4477ae
lea esi, [esp + 0x34]
call fcn.0043342d
mov byte [esp + 0x278], 1
push eax
call fcn.0043af96
push 7
lea esi, [esp + 0x28]
call fcn.0042e833
push 0x486754
mov eax, esi
push eax
call fcn.00450dab
add esi, 0x40
and eax, 0xfffffffe
push esi
call dword [eax + 4]
pop ecx
push 8
mov esi, eax
call fcn.0044d0eb
pop ecx
mov dword [esp + 0x18], eax
mov byte [esp + 0x278], 3
test eax, eax
je 0x447801
lea ecx, [esp + 0x62]
push ecx
push esi
push eax
call fcn.004486c4
mov esi, eax
jmp 0x447803
xor esi, esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x278], 4
test esi, esi
je 0x447849
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 4]
test al, al
jne 0x4478bd
push 0x3e8
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x447842
mov byte [esp + 0x17], 1
cmp byte [esp + 0x17], 0
je 0x447813
mov byte [esp + 0x278], 0
test esi, esi
je 0x44785d
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
cmp byte [esp + 0x17], 0
jne 0x44788d
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x447881
cmp dword [esp + 0x18], 0x103
jne 0x44788d
push 0
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0044cced
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0x18], 1
je 0x447849
push 1
lea esi, [esp + 0x28]
call fcn.0042e85b
push 0x486708
mov eax, esi
jmp 0x4477c6
Function at 0x4478db
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46b34f
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x185c
call fcn.00460740
mov eax, dword [0x493350]
xor eax, esp
mov dword [esp + 0x1858], eax
push ebx
push esi
push edi
mov eax, dword [0x493350]
xor eax, esp
push eax
lea eax, [esp + 0x1870]
mov dword fs:[0], eax
lea eax, [esp + 0x34]
push eax
push 0x1000
lea eax, [esp + 0x4c]
mov ebx, ecx
push eax
mov dword [esp + 0x44], ebx
call sub.PSAPI.DLL_EnumProcesses
mov esi, dword [esp + 0x34]
push 4
shr esi, 2
call fcn.0044d0eb
pop ecx
xor ecx, ecx
cmp eax, ecx
je 0x447957
lea edx, [esp + 0x14]
mov dword [eax], edx
jmp 0x447959
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1878], 1
cmp esi, ecx
jbe 0x447a8c
lea edi, [esp + 0x44]
mov dword [esp + 0x2c], esi
push dword [edi]
mov esi, 0x400
push 0
push esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x30], eax
push esi
lea ecx, [esp + 0x1068]
push ecx
push eax
mov byte [esp + 0x1884], 2
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x447a66
xor eax, eax
mov word [esp + 0x1862], ax
lea eax, [esp + 0x1064]
lea ecx, [esp + 0x1048]
call fcn.00406dd0
mov byte [esp + 0x1878], 3
cmp dword [ebx + 0x74], 8
mov ecx, dword [ebx + 0x70]
jb 0x4479ea
mov eax, dword [ebx + 0x60]
jmp 0x4479ed
lea eax, [ebx + 0x60]
push eax
mov ebx, ecx
xor eax, eax
lea edx, [esp + 0x104c]
call fcn.004183f0
cmp eax, 0xffffffff
je 0x447a56
mov edx, dword [esp + 0x20]
test edx, edx
jne 0x447a0f
xor eax, eax
jmp 0x447a18
mov eax, dword [esp + 0x28]
sub eax, edx
sar eax, 2
mov ecx, dword [esp + 0x24]
mov esi, ecx
sub esi, edx
sar esi, 2
cmp esi, eax
jae 0x447a36
mov edx, dword [edi]
mov eax, ecx
add eax, 4
mov dword [ecx], edx
mov dword [esp + 0x24], eax
jmp 0x447a56
mov esi, ecx
cmp edx, ecx
jbe 0x447a41
call fcn.0044d2b8
mov eax, dword [esp + 0x14]
push esi
push eax
push edi
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x24]
call fcn.0043e578
lea esi, [esp + 0x1048]
call fcn.00406e40
mov ebx, dword [esp + 0x38]
mov byte [esp + 0x1878], 1
cmp dword [esp + 0x30], 0
je 0x447a7f
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 4
dec dword [esp + 0x2c]
jne 0x447984
mov edi, dword [esp + 0x24]
mov byte [ebx + 0x58], 0
cmp dword [esp + 0x20], edi
jbe 0x447a9f
call fcn.0044d2b8
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x24]
jbe 0x447abc
call fcn.0044d2b8
jmp 0x447abc
push dword [esi]
mov ecx, ebx
call fcn.00447698
add esi, 4
cmp esi, edi
jne 0x447ab0
mov bl, byte [ebx + 0x58]
xor esi, esi
cmp dword [esp + 0x20], esi
je 0x447ad5
push dword [esp + 0x20]
call fcn.0044cce2
pop ecx
push dword [esp + 0x14]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call fcn.0044cce2
pop ecx
mov al, bl
mov ecx, dword [esp + 0x1870]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1858]
xor ecx, esp
call fcn.0044cced
mov esp, ebp
pop ebp
ret
Function at 0x4484b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov ebx, ecx
test edi, edi
je 0x448511
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x448511
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4484e1
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
mov eax, ecx
jmp 0x448513
push edi
call dword [sym.imp.SHLWAPI.dll_StrDupW]
push 0x5c
mov esi, eax
push 0
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x44852c
xor ecx, ecx
mov word [eax], cx
push esi
mov ecx, ebx
call fcn.004484b0
push esi
test eax, eax
jne 0x448519
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebx
ret 4
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x448511
xor eax, eax
inc eax
jmp 0x448513
Function at 0x448531
Capabilities:
Timestomp file

Disassembly:
push 0x48
mov eax, 0x46bd53
call fcn.004511dd
mov edi, ecx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
lea esi, [ebp - 0x54]
push str.SetFileModTime_couldnt_open__S
mov dword [ebp - 4], ebx
call fcn.004318ef
pop ecx
pop ecx
xor ecx, ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x10], 0xffffffff
setne cl
cmp ecx, ebx
jne 0x448583
call fcn.0042f9de
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00406d50
push dword [ebp + 8]
lea esi, [ebp - 0x54]
push str.SetFileModTime_failed_GetFileTime:__S
call fcn.004318ef
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, ebx
jne 0x4485c6
mov eax, esi
call fcn.0042f9de
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00406d50
push dword [ebp + 8]
lea esi, [ebp - 0x54]
push str.SetFileModTime_failed_DosDateTimeToFileTime:__S
call fcn.004318ef
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push edi
shr edi, 0x10
push edi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, ebx
jne 0x448603
mov eax, esi
call fcn.0042f9de
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00406d50
push dword [ebp + 8]
lea esi, [ebp - 0x54]
push str.SetFileModTime_failed_LocalFileTimeToFileTime:__S
call fcn.004318ef
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, ebx
jne 0x44863f
mov eax, esi
call fcn.0042f9de
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00406d50
push dword [ebp + 8]
lea esi, [ebp - 0x54]
push str.SetFileModTime_failed_SetFileTime:__S
call fcn.004318ef
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x448682
mov eax, esi
call fcn.0042f9de
lea ecx, [ebp - 0x54]
call fcn.00406d50
cmp dword [ebp - 0x10], ebx
je 0x448698
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004512b5
ret 4

Function at 0x448737
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [esp + 4]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 4]
ret
Function at 0x44cced
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x493350]
jne 0x44ccf7
repz ret
jmp fcn.0045476c

Function at 0x46076b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004556c9
and dword [ebp - 4], 0
cmp dword [0x49d878], 0
mov ebx, eax
jne 0x46081c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4608cd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x474280
push edi
call esi
test eax, eax
je 0x4608cd
push eax
call fcn.00455657
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x49d878], eax
call esi
push eax
call fcn.00455657
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x49d87c], eax
call esi
push eax
call fcn.00455657
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x49d880], eax
call esi
push eax
call fcn.00455657
pop ecx
mov dword [0x49d888], eax
test eax, eax
je 0x46081c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00455657
pop ecx
mov dword [0x49d884], eax
mov eax, dword [0x49d884]
cmp eax, ebx
je 0x460874
cmp dword [0x49d888], ebx
je 0x460874
push eax
call fcn.004556d2
push dword [0x49d888]
mov esi, eax
call fcn.004556d2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x460874
test edi, edi
je 0x460874
call esi
test eax, eax
je 0x46086b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46086b
test byte [ebp - 0xc], 1
jne 0x460874
or dword [ebp + 0x10], 0x200000
jmp 0x4608ad
mov eax, dword [0x49d87c]
cmp eax, ebx
je 0x4608ad
push eax
call fcn.004556d2
pop ecx
test eax, eax
je 0x4608ad
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4608ad
mov eax, dword [0x49d880]
cmp eax, ebx
je 0x4608ad
push eax
call fcn.004556d2
pop ecx
test eax, eax
je 0x4608ad
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49d878]
call fcn.004556d2
pop ecx
test eax, eax
je 0x4608cd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4608cf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6d3788d9
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x6d38bb70]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xac]
push ebx
push esi
mov esi, dword [ebp + 0xa8]
push edi
xor edi, edi
push edi
push eax
push esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x70], edi
call fcn.6d37e410
push eax
push esi
call fcn.6d378891
mov esi, eax
pop ecx
pop ecx
mov dword [ebp - 0x74], esi
cmp esi, edi
je 0x6d378976
push 0x5c
push esi
call dword [sym.imp.msvcr100.dll_strchr]
pop ecx
pop ecx
test eax, eax
jne 0x6d37894d
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x104
push 0x6d384e94
push esi
push edi
jmp 0x6d378970
push 0x5c
push esi
call dword [sym.imp.msvcr100.dll_strrchr]
pop ecx
pop ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push 0x104
mov byte [eax], 0
push 0x6d384e94
inc eax
push eax
push esi
call dword [sym.imp.kernel32.dll_SearchPathA]
lea eax, [ebp - 0x68]
push edi
push eax
call dword [sym.imp.msvcr100.dll__open]
mov ebx, eax
pop ecx
pop ecx
cmp ebx, edi
jle 0x6d3789f9
mov esi, dword [sym.imp.msvcr100.dll__read]
push 2
lea eax, [ebp - 0x6c]
push eax
push ebx
call esi
add esp, 0xc
cmp byte [ebp - 0x6c], 0x4d
jne 0x6d3789ee
cmp byte [ebp - 0x6b], 0x5a
jne 0x6d3789ee
push edi
mov edi, dword [sym.imp.msvcr100.dll__lseek]
push 0x3c
push ebx
call edi
push 2
lea eax, [ebp - 0x6c]
push eax
push ebx
call esi
movzx eax, byte [ebp - 0x6b]
movzx ecx, byte [ebp - 0x6c]
shl eax, 8
push 0
or eax, ecx
push eax
push ebx
call edi
push 2
lea eax, [ebp - 0x6c]
push eax
push ebx
call esi
add esp, 0x30
cmp byte [ebp - 0x6c], 0x50
jne 0x6d3789ee
cmp byte [ebp - 0x6b], 0x45
jne 0x6d3789ee
mov dword [ebp - 0x70], 8
push ebx
call dword [sym.imp.msvcr100.dll__close]
mov esi, dword [ebp - 0x74]
pop ecx
push esi
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
call sym.java.dll__JNU_ReleaseStringPlatformChars_12
mov ecx, dword [ebp + 0x9c]
mov eax, dword [ebp - 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d381820
add ebp, 0xa0
leave
ret
Function at 0x6d37933b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x14], 4
mov byte [ebp - 1], 0
je 0x6d3793cf
cmp dword [ebp + 0x14], 1
je 0x6d3793cf
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x6d379378
push dword [0x6d38bc9c]
mov eax, dword [esi]
push dword [ebp + 0x10]
push esi
call dword [eax + 0x17c]
mov ebx, eax
cmp ebx, edi
jne 0x6d379381
push edi
push esi
call sym.java.dll__JNU_ThrowNullPointerException_8
jmp 0x6d3793c7
push edi
push ebx
push esi
call fcn.6d37e410
mov edi, eax
test edi, edi
je 0x6d3793c7
push edi
call sub.jvm.dll__JVM_NativePath_4
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6d3793bf
cmp byte [ebp + 0x18], 0
je 0x6d3793ac
and eax, 0xfffffffe
jmp 0x6d3793af
or eax, 1
push eax
push edi
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
je 0x6d3793bf
mov byte [ebp - 1], 1
push edi
push ebx
push esi
call sym.java.dll__JNU_ReleaseStringPlatformChars_12
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
jmp 0x6d3793d2
mov al, byte [ebp + 0x18]
leave
ret 0x18

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

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jne 0x6d379550
push ebx
push dword [ebp + 8]
call sym.java.dll__JNU_ThrowNullPointerException_8
jmp 0x6d3795c3
push esi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.6d37e410
mov esi, eax
cmp esi, ebx
je 0x6d3795c2
push edi
push esi
call sub.jvm.dll__JVM_NativePath_4
push 0x1b6
push 0x502
push esi
call sub.jvm.dll__JVM_Open_12
cmp eax, ebx
jge 0x6d3795ad
cmp eax, 0xffffff9c
je 0x6d3795b5
call dword [sym.imp.kernel32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x6d37959b
test al, 0x10
jne 0x6d3795b5
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
push esi
push dword [ebp + 8]
call sym.java.dll__JNU_ThrowIOExceptionWithLastError_8
jmp 0x6d3795b5
push eax
call sub.jvm.dll__JVM_Close_4
mov bl, 1
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call sym.java.dll__JNU_ReleaseStringPlatformChars_12
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 0xc