joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a074
Capabilities:
Check if file exists

Disassembly:
push 0x44
mov eax, 0x45e6f1
call fcn.0043acf4
cmp dword [0x47baf0], 0
jne 0x42a08e
call fcn.004293bb
lea ecx, [ebp - 0x50]
call fcn.0042893e
push dword [0x47baf8]
and dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a22d
push dword [0x47baf8]
lea ecx, [ebp - 0x50]
call fcn.0042c54c
test eax, eax
jne 0x42a22d
push 0x47bc90
lea ecx, [ebp - 0x14]
call fcn.00402172
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x44]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0041fb50
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
jmp 0x42a1ff
lea ecx, [ebp - 0x1c]
call fcn.00426a1c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0042611c
mov ebx, dword [eax + 0x118]
lea ecx, [ebp - 0x24]
call fcn.0042611c
mov edi, eax
add edi, 4
je 0x42a130
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x42a134
xor eax, eax
jmp 0x42a148
lea eax, [esi + esi]
call fcn.0043bc40
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0042261b
push eax
lea ecx, [ebp - 0x14]
call fcn.00404c6e
test bl, 2
je 0x42a193
test ebx, 0x200
je 0x42a168
push 0x2a
lea ecx, [ebp - 0x14]
call fcn.004233f5
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404bfc
push 0x81a8
lea ecx, [ebp - 0x34]
call fcn.004062be
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00404bfc
mov ecx, dword [ebp - 0x34]
jmp 0x42a1d3
test ebx, 0x200
je 0x42a1eb
test bl, 4
je 0x42a1eb
push 0x2a
lea ecx, [ebp - 0x14]
call fcn.004233f5
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404bfc
push 0x81a9
lea ecx, [ebp - 0x30]
call fcn.004062be
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00404bfc
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.004014f1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.00429c2d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00426a39
lea ecx, [ebp - 0x24]
call fcn.00426148
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x2c]
call fcn.0041fb50
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
call fcn.0041eb57
test al, al
je 0x42a0f5
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004014f1
lea ecx, [ebp - 0x50]
call fcn.004273b6
lea esp, [ebp - 0x60]
call fcn.0043ad77
ret

Function at 0x42a488
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x42a459
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x42bded
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esi + 0x18]
push str..tmp
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
call fcn.0040ea04
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x42be4c
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.004014f1
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov edi, 0x12c
cdq
mov ecx, edi
idiv ecx
push ebx
mov dword [ebp - 0x1e], ebx
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x24], 0xe
mov dword [ebp - 0x1a], eax
lea eax, [edi - 0x2c]
mov word [ebp - 0x20], ax
lea eax, [ebp - 8]
push eax
push 0xe
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x42bf0c
cmp dword [ebp - 8], 0xe
jne 0x42bf0c
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov ecx, edi
cdq
idiv ecx
and dword [ebp - 0xc], 0
test eax, eax
jle 0x42bee2
push dword [ebp - 0xc]
mov ecx, esi
call fcn.0042b9f7
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x42bf0c
cmp dword [ebp - 8], edi
jne 0x42bf0c
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
mov ecx, edi
cdq
idiv ecx
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], eax
jl 0x42beaf
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push 1
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x42bf05
push 6
pop esi
jmp 0x42bf1e
xor esi, esi
jmp 0x42be3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x42be3a
Function at 0x42c54c
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xd4]
sub esp, 0x154
mov eax, dword [0x479f14]
xor eax, ebp
mov dword [ebp + 0xd0], eax
push ebx
mov ebx, dword [ebp + 0xdc]
push edi
mov edi, ecx
push ebx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x80], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42c592
push ebx
lea ecx, [edi + 0x18]
call fcn.00404c6e
xor eax, eax
jmp 0x42c6ae
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x60], eax
cmp eax, 0xffffffff
jne 0x42c5b8
xor eax, eax
inc eax
jmp 0x42c6ad
mov ecx, edi
call fcn.0042c1e5
xor eax, eax
mov dword [ebp - 0x7c], esi
lea edi, [ebp - 0x78]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea eax, [ebp - 0x64]
push eax
push 0xe
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x60]
mov dword [ebp - 0x64], esi
call edi
test eax, eax
je 0x42c69f
cmp dword [ebp - 0x64], 0xe
jne 0x42c69f
cmp dword [ebp - 0x7c], 0xe
jne 0x42c69f
mov eax, 0x100
cmp word [ebp - 0x78], ax
jne 0x42c69f
push esi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x42c622
push 4
jmp 0x42c6a1
mov ecx, dword [ebp - 0x72]
imul ecx, ecx, 0x12c
add ecx, 0xe
cmp eax, ecx
jne 0x42c61e
cmp dword [ebp - 0x72], esi
mov dword [ebp - 0x68], esi
jle 0x42c686
mov ebx, 0x12c
push 0x128
lea eax, [ebp - 0x58]
push esi
push eax
mov dword [ebp - 0x5c], esi
call fcn.0043a190
add esp, 0xc
push esi
lea eax, [ebp - 0x64]
push eax
push ebx
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x60]
call edi
test eax, eax
je 0x42c61e
cmp dword [ebp - 0x64], ebx
jne 0x42c61e
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x5c]
push eax
call fcn.0042c4f0
inc dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x72]
jl 0x42c63f
mov ebx, dword [ebp - 0x80]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x6c]
push ebx
add ecx, 0x18
call fcn.00404c6e
xor eax, eax
jmp 0x42c6ad
push 3
pop esi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp + 0xd0]
pop edi
xor ecx, ebp
pop ebx
call fcn.0043a7c3
add ebp, 0xd4
leave
ret 4
Function at 0x42c721
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
sub esp, 0x12c
lea ebp, [esp - 4]
mov eax, dword [0x479f14]
xor eax, ebp
mov dword [ebp + 0x12c], eax
push 0x40
mov eax, 0x45e932
call fcn.0043ac8b
mov eax, dword [ebp + 0x13c]
mov esi, dword [ebp + 0x138]
push eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c874
lea ecx, [ebp - 0x4c]
call fcn.0042482c
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.0042c54c
cmp eax, ebx
jne 0x42c868
mov esi, 0x12c
push esi
lea eax, [ebp]
push ebx
push eax
call fcn.0043a190
add esp, 0xc
lea eax, [ebp + 0x11c]
push eax
mov dword [ebp], esi
mov dword [ebp + 0x118], 0x204
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [ebp - 0x4c]
call fcn.0042515a
test eax, eax
je 0x42c868
push 0x47bc90
lea ecx, [ebp - 0x10]
call fcn.00402172
mov byte [ebp - 4], 1
jmp 0x42c830
push 0x2a
lea ecx, [ebp - 0x10]
call fcn.00426caa
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x42c7f7
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42c7fb
xor eax, eax
jmp 0x42c811
lea esi, [eax + eax]
mov eax, esi
call fcn.0043bc40
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.004099a6
push 0x100
push eax
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp]
push eax
call fcn.0042c6c7
inc dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0042372a
test eax, eax
jne 0x42c7d7
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.004014f1
cmp dword [ebp - 0x18], ebx
je 0x42c868
mov ecx, dword [ebp - 0x14]
call fcn.0042bded
cmp eax, ebx
jne 0x42c868
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0042485a
xor eax, eax
lea esp, [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x12c]
xor ecx, ebp
call fcn.0043a7c3
add ebp, 0x130
leave
ret 8
Function at 0x42e483
Capabilities:
Get graphical window text

Disassembly:
push 0x18
mov eax, 0x45ec39
call fcn.0043ac8b
mov esi, ecx
xor ecx, ecx
push 2
mov ebx, 0x200
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004339c0
mov dword [esp], 0x400
push 0
push eax
mov dword [ebp - 0x18], eax
call fcn.0043a190
add esp, 0xc
mov edi, 0x444
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push ebx
push dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [ebp - 0x18]
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x10]
call fcn.004062be
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x70]
lea eax, [ebp - 0x10]
push eax
call fcn.00428957
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add esp, 0xc
add ecx, 0xfffffff0
mov ebx, eax
call fcn.004014f1
test ebx, ebx
je 0x42e55e
mov ecx, esi
call fcn.0042e39a
push 0x8148
lea ecx, [ebp - 0x10]
call fcn.004062be
push dword [ebp - 0x10]
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax - 0xc]
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xffffffffffffffff
push ebx
push 0xb1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x10]
jmp 0x42e5f0
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x14], ebx
jne 0x42e5a7
push 0x8140
lea ecx, [ebp - 0x1c]
call fcn.004062be
mov edi, eax
push 0x8180
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.004062be
push 0x10
push dword [edi]
mov byte [ebp - 4], 2
push dword [eax]
push dword [esi + 4]
call fcn.0040748c
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004014f1
mov ecx, dword [ebp - 0x1c]
jmp 0x42e5f0
cmp dword [ebp - 0x14], 2
jne 0x42e5f8
push 0x8140
lea ecx, [ebp - 0x24]
call fcn.004062be
mov edi, eax
push 0x8181
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 3
call fcn.004062be
push 0x10
push dword [edi]
mov byte [ebp - 4], 4
push dword [eax]
push dword [esi + 4]
call fcn.0040748c
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004014f1
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004014f1
push dword [ebp - 0x18]
call fcn.00439fec
pop ecx
call fcn.0043ad63
ret
Function at 0x42eb66
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x42eb86
push ebx
push ebx
push ebx
push 2
call fcn.00430f17
xor al, al
jmp 0x42ec43
push esi
call fcn.0042ead6
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
push 2
push ebx
push dword [ebp + 8]
call fcn.0043c761
push dword [ebp + 8]
call fcn.0043f21a
push ebx
push ebx
push dword [ebp + 8]
mov esi, eax
mov dword [ebp - 4], esi
call fcn.0043c761
add esp, 0x1c
cmp esi, ebx
jg 0x42ebc4
push ebx
push ebx
push ebx
push 0xc
jmp 0x42ebf1
inc esi
push esi
call fcn.004339c0
push dword [ebp + 8]
mov esi, eax
push 1
push dword [ebp - 4]
mov byte [esi], bl
push esi
call fcn.0043ca86
add esp, 0x14
cmp eax, 1
je 0x42ebfc
push esi
call fcn.0043a76e
pop ecx
push ebx
push ebx
push ebx
push 2
mov ecx, edi
call fcn.00430f17
xor al, al
jmp 0x42ec42
mov edx, dword [ebp - 4]
mov byte [esi + edx], bl
mov ecx, esi
mov eax, esi
cmp byte [esi], bl
je 0x42ec25
mov dl, byte [ecx]
cmp dl, 0xd
jne 0x42ec1d
mov byte [eax], 0xa
inc eax
inc ecx
cmp byte [ecx], 0xa
jne 0x42ec21
jmp 0x42ec20
mov byte [eax], dl
inc eax
inc ecx
cmp byte [ecx], bl
jne 0x42ec0a
push dword [ebp + 0xc]
mov byte [eax], bl
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 8]
push esi
call fcn.0043a76e
xor eax, eax
cmp byte [edi + 0x44], bl
pop ecx
sete al
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x4333d6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x47bc78], 0
push esi
jne 0x433349
call fcn.0043326f
test eax, eax
je 0x43338c
mov eax, dword [0x47bc78]
cmp eax, 1
jne 0x43336a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x43338c
pop esi
ret
push eax
call dword [0x47bc80]
test eax, eax
jne 0x4333d4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x433390
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x47bc78]
call dword [0x47bc80]
mov edi, eax
test edi, edi
je 0x4333b5
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4333d1
mov edi, esi
add esi, 0xff0
push edi
push dword [0x47bc78]
call dword [0x47bc7c]
add edi, 0x10
cmp edi, esi
jb 0x4333bd
mov eax, edi
pop edi
pop esi
ret
jmp 0x433336
Function at 0x434aa0
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x434ad2
xor ecx, ecx
jmp 0x434ade
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
mov esi, ecx
test ecx, ecx
je 0x434b91
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, dword [esi]
cmp dword [esp + 0x14], eax
jne 0x434b04
mov dword [esp + 0x10], esi
jmp 0x434b64
push eax
push 1
push 0x40
call ebx
test eax, eax
jne 0x434b5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x434b50
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x434b64
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x434b64
push 0x464dc0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x434b64
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x434b87
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x434af6
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
test eax, eax
jne 0x434ba5
mov ecx, dword [edi]
add ecx, 8
call fcn.00434920
test eax, eax
je 0x434ba5
mov edx, dword [esp + 0xc]
mov dword [eax], edx
pop edi
pop esi
add esp, 8
ret
Function at 0x434bc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f0e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x479f14]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
jne 0x434c0c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x434c19
mov dword [ebp - 0x14], ebx
jmp 0x434c2b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x434cc5
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, ebx
je 0x434bf8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x434bf8
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00434aa0
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
jne 0x434c68
push 0x470c8c
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 1
call fcn.0043a095
mov eax, dword [esi]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x434c7e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x434cb4
push 0x470c8c
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 4
call fcn.0043a095
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x434ca8
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx]
push eax
add ecx, 8
call fcn.00434a00
mov eax, 0x434cae
ret
mov esi, dword [esi]
mov eax, dword [esi]
test eax, eax
je 0x434cc3
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x434ce0
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x45f10b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x479f14]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.0043a190
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x18], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x434d7b
push 0x470c8c
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.0043a095
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x434df0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov ecx, 0x47bdbc
jmp fcn.00434bc0
Function at 0x436240
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x436274
push str.SetFilePointerEx__
push eax
push 0xed
push str..QHImageHlp.c
call fcn.00434700
add esp, 0x10
xor eax, eax
ret
mov eax, dword [esp + 0xc]
push 0
lea edx, [esp + 8]
push edx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4362a7
push str.ReadFile__
push eax
push pe_nt_image_headers32
push str..QHImageHlp.c
call fcn.00434700
add esp, 0x10
xor eax, eax
ret
cmp edi, dword [esp + 4]
je 0x4362c9
push 0x465320
push 1
push 0xf2
push str..QHImageHlp.c
call fcn.00434730
add esp, 0x10
xor eax, eax
ret
mov eax, 1
ret
Function at 0x437800
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4389e0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x438a10
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x438a40
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x439c50
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x80c
mov eax, dword [0x479f14]
xor eax, esp
mov dword [esp + 0x808], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0043a190
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x439cd0
mov eax, 1
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0043a7c3
add esp, 0x80c
ret
push str.360ver.dll
lea edx, [esp + 0xc]
push edx
mov eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x439cb6
lea edx, [esp + 8]
push edx
call fcn.00439b80
add esp, 4
test eax, eax
je 0x439cb6
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x439d2e
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0043a7c3
add esp, 0x80c
ret
push edi
push str.IsBetaVersion
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x810]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0043a7c3
add esp, 0x80c
ret