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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x44465c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
movzx edx, word [eax + 0x84]
push ebx
xor ebx, ebx
xor eax, eax
push edi
mov edi, ecx
mov dword [ebp - 0x18], 0x9302d30
mov dword [ebp - 0x14], 0xe2b0506
mov dword [ebp - 0x10], 0x51a0203
mov word [ebp - 0xc], 0x400
mov byte [ebp - 0xa], 0x20
mov dword [ebp - 0xdc], 0x2f
cmp esi, ebx
je 0x41d600
mov dword [esi], 1
jmp 0x41d600
movzx ecx, ax
lea ecx, [ecx + ecx*2]
cmp word [ecx*4 + 0x43ecbc], dx
je 0x41d61c
inc eax
cmp ax, 1
jb 0x41d600
jmp 0x41d740
cmp ax, 1
jae 0x41d740
movzx eax, ax
lea edx, [eax + eax*2]
mov eax, dword [edx*4 + 0x43ecc0]
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], ebx
push ecx
mov ebx, edi
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], 0x6a09e667
mov dword [ebp - 0xd0], 0xbb67ae85
mov dword [ebp - 0xcc], 0x3c6ef372
mov dword [ebp - 0xc8], 0xa54ff53a
mov dword [ebp - 0xc4], 0x510e527f
mov dword [ebp - 0xc0], 0x9b05688c
mov dword [ebp - 0xbc], 0x1f83d9ab
mov dword [ebp - 0xb8], 0x5be0cd19
call fcn.0041f880
add esp, 4
test eax, eax
je 0x41d740
lea eax, [ebp - 0x68]
lea edi, [ebp - 0xd4]
call fcn.00420920
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x48]
push edx
mov edx, dword [ebp - 0xd8]
add ecx, 0x90
lea ebx, [ebp - 0xdc]
call fcn.004200e0
add esp, 4
test eax, eax
jne 0x41d740
lea edx, [eax + 0xf]
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x18]
lea ebx, [ebx]
mov edi, dword [ecx]
cmp edi, dword [eax]
jne 0x41d740
sub edx, 4
add eax, 4
add ecx, 4
cmp edx, 4
jae 0x41d6f0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41d740
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41d740
mov al, byte [eax + 2]
cmp al, byte [ecx + 2]
jne 0x41d740
mov eax, 0x20
xor ecx, ecx
mov edx, dword [ebp + ecx - 0x68]
cmp edx, dword [ebp + ecx - 0x39]
jne 0x41d740
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x41d721
test esi, esi
je 0x41d740
mov dword [esi], 3
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0042396b
mov esp, ebp
pop ebp
ret

Function at 0x41df70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41dfa6
push str.ReadFile__
push 0xfc
push str.QHImageHlp.c
xor edx, edx
call fcn.00421a10
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp esi, dword [ebp - 4]
je 0x41dfcd
push 0x440924
push 0xfe
push str.QHImageHlp.c
mov edx, 1
call fcn.00421b40
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x41e890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44465c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
cmp esi, ebx
jne 0x41e8bf
mov dword [ebp - 0x1c], 0xffffffff
jmp 0x41e8c4
mov ecx, dword [esi]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push ebx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x41e8f7
push str.SetFilePointerEx__
push 0xf9
push str.QHImageHlp.c
xor edx, edx
call fcn.00421a10
add esp, 0xc
jmp 0x41e9eb
push 0
lea ecx, [ebp - 0x24]
push ecx
push 8
lea edx, [ebp - 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41e92c
push str.ReadFile__
push 0xfc
push str.QHImageHlp.c
xor edx, edx
call fcn.00421a10
add esp, 0xc
jmp 0x41e9eb
mov ecx, 8
cmp dword [ebp - 0x24], ecx
je 0x41e955
push 0x440924
push 0xfe
lea edx, [ecx - 7]
push str.QHImageHlp.c
call fcn.00421b40
add esp, 0xc
jmp 0x41e9eb
cmp dword [ebp + 0x10], ebx
je 0x41e9a0
mov ebx, ecx
cmp dword [ebp - 0x1c], ecx
jae 0x41e97f
push 0x4409d8
push 0x321
mov edx, 5
push str.QHImageHlp.c
call fcn.00421b40
add esp, 0xc
jmp 0x41e9eb
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
movzx edx, word [ebp - 0xc]
mov word [eax + 4], dx
movzx edx, word [ebp - 0xa]
mov word [eax + 6], dx
mov dword [ebp - 0x14], 1
jmp 0x41e9eb
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jbe 0x41e9b6
push 0x4409d8
mov ebx, eax
push 0x32d
jmp 0x41e96b
mov ecx, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x41ea04
push str.SetFilePointerEx__
push 0xf9
push str.QHImageHlp.c
xor edx, edx
call fcn.00421a10
add esp, 0xc
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
test esi, esi
je 0x41e9f4
mov dword [esi], ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042396b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
mov edx, edi
call fcn.0041df70
test eax, eax
je 0x41e9e8
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
jmp 0x41e9eb
Function at 0x41ed10
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
lea esi, [eax + 0xccc]
mov eax, dword [eax]
push edi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x41ed58
push str.GetFileSizeEx__
push 0x11e
push str.QHImageHlp.c
xor edx, edx
call fcn.00421a10
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
xor ebx, ebx
add edx, 8
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edx
lea esp, [esp]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jne 0x41ed7f
mov eax, dword [edi]
mov ecx, dword [edi + 4]
jmp 0x41ed85
mov eax, dword [edx - 8]
mov ecx, dword [edx - 4]
sub eax, ebx
sbb ecx, dword [ebp - 0x1c]
mov edi, eax
shrd edi, ecx, 0xf
shr ecx, 0xf
and eax, 0x7fff
mov dword [ebp - 4], edi
mov edi, eax
jne 0x41eda6
mov edi, 0x8000
jmp 0x41eda9
inc dword [ebp - 4]
cmp dword [ebp - 4], 0
jbe 0x41ee19
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
push 0
push 0
push ecx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x41ee94
mov ecx, dword [ebp - 0x10]
push 0
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41eeb6
cmp edi, dword [ebp - 0x18]
jne 0x41eed8
mov edx, 0x41d480
test edx, edx
je 0x41ee06
push edi
push esi
mov esi, dword [ebp + 0x10]
call fcn.00420800
mov esi, dword [ebp - 0x14]
add esp, 8
add ebx, edi
adc dword [ebp - 0x1c], 0
dec dword [ebp - 4]
mov edi, 0x8000
jne 0x41edaf
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x41ee76
mov eax, dword [edx]
test eax, eax
je 0x41ef22
mov ecx, 0x41d480
test ecx, ecx
je 0x41ee69
cmp dword [edx + 4], 0
je 0x41ee69
cmp eax, 0x8000
ja 0x41eefd
push eax
push 0
push esi
call fcn.00427d80
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
add esp, 0xc
push eax
push esi
mov esi, dword [ebp + 0x10]
call fcn.00420800
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
add esp, 8
mov ebx, dword [edx]
xor eax, eax
add ebx, dword [edx - 8]
adc eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
inc eax
add edx, 0x18
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
cmp eax, dword [ebp + 0xc]
ja 0x41ef22
mov edi, dword [ebp + 0x14]
jmp 0x41ed70
push str.SetFilePointerEx__
push 0xf9
push str.QHImageHlp.c
xor edx, edx
call fcn.00421a10
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.ReadFile__
push 0xfc
push str.QHImageHlp.c
xor edx, edx
call fcn.00421a10
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x440924
push 0xfe
mov edx, 1
push str.QHImageHlp.c
call fcn.00421b40
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4409f4
push 0x3d8
mov edx, 8
push str.QHImageHlp.c
call fcn.00421b40
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f410
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi]
mov edi, dword [esi + 0x18]
lea ecx, [ebp - 0x14]
push ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor edx, edx
test eax, eax
jne 0x41f459
push str.GetFileSizeEx__
push 0x11e
push str.QHImageHlp.c
call fcn.00421a10
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x14]
mov ecx, dword [esi + 0xb4]
sub ebx, edi
mov edi, dword [ebp - 0x10]
sbb edi, edx
sub ebx, 0x298
sbb edi, edx
xor eax, eax
cmp edi, eax
jl 0x41f4ed
jg 0x41f47d
cmp ebx, ecx
jb 0x41f4ed
mov esi, dword [esi]
push 0
push 0
push edi
push ebx
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x41f4b5
push str.SetFilePointerEx__
push 0xf9
push str.QHImageHlp.c
xor edx, edx
call fcn.00421a10
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov esi, 0x298
call fcn.0041df70
test eax, eax
je 0x41f4ac
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41f4d5
mov dword [eax], ebx
mov dword [eax + 4], edi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41f4f9
mov ecx, 1
mov word [eax], cx
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41f4f9
xor edx, edx
mov word [eax], dx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fd60
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x44465c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
cmp eax, ebx
je 0x41fe88
cmp dword [ebp + 0xc], ebx
je 0x41fe88
push esi
push 0x2800
call fcn.00425421
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x41fdbf
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042396b
mov esp, ebp
pop ebp
ret
push edi
push ebx
push str..PhysicalDrive_d
push 0x2800
push esi
call fcn.0041de40
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41fe61
xor eax, eax
push 0x2800
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call fcn.00427d80
add esp, 0xc
push 0
lea eax, [ebp - 0x18]
push eax
push 0x2800
push esi
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41fe54
mov eax, dword [esi + 0x18]
test eax, eax
je 0x41fe54
mov edx, dword [ebp - 0x1c]
add eax, esi
push eax
mov eax, dword [ebp + 0xc]
push edx
push str.DISKID:
call fcn.0041fb20
add esp, 0xc
mov dword [ebp - 0x14], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
jne 0x41fe6b
inc ebx
cmp ebx, 0x10
jl 0x41fdc0
push esi
call fcn.00424001
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042396b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.0042396b
mov esp, ebp
pop ebp
ret
Function at 0x41ff40
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 8], edi
je 0x41ff78
cmp dword [ebp + 0xc], edi
je 0x41ff78
push 0x200
call fcn.00425421
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x41ff82
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 0x20119
push edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4200c9
mov edx, dword [ebp - 8]
push eax
push eax
push eax
push eax
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push edx
mov dword [ebp - 4], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x420068
mov eax, dword [ebp - 8]
test eax, eax
jne 0x41ffd3
mov eax, 0x80000002
lea ecx, [ebp - 0x10]
push ecx
push 0x20119
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420040
lea edx, [ebp + 0xc]
push edx
mov edx, dword [ebp - 0x10]
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push str.ServiceName
push edx
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x420036
mov eax, esi
mov dword [esi], 0x5c2e5c5c
call fcn.0041fea0
cmp edx, ebx
jb 0x420036
ja 0x420031
cmp eax, dword [ebp - 0x20]
jbe 0x420036
mov dword [ebp - 0x20], eax
mov ebx, edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 8]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push esi
inc edi
push edi
push edx
mov dword [ebp - 4], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x41ffc7
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x42007b
cmp dword [ebp - 0x20], ebx
jbe 0x4200c9
mov ecx, dword [ebp - 0x20]
push ebx
push ecx
push str._012I64X
push 0x200
push esi
call fcn.0041de40
add esp, 0x14
test eax, eax
jne 0x4200b1
push esi
mov dword [ebp - 0xc], 0xffffffff
call fcn.00424001
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push esi
push edx
push str.MAC:
call fcn.0041fb20
add esp, 0xc
mov dword [ebp - 0xc], eax
push esi
call fcn.00424001
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4227e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439c8e
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x44465c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [0x4af800], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
lea eax, [ebp - 0x98]
push 0x40
push eax
call fcn.00424b04
add esp, 0x14
lea edx, [ebp - 0x98]
push edx
push 1
xor ecx, ecx
push ebx
mov word [ebp - 0x18], cx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x9c], edi
cmp edi, ebx
je 0x422975
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x422879
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], ebx
call fcn.00422650
cmp eax, ebx
je 0x42288f
mov dword [0x4af800], eax
jmp 0x422956
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, ebx
je 0x4228aa
push 0x5c0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0xa8], esi
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x4228c1
push edi
push esi
call fcn.00422be0
jmp 0x4228c3
xor eax, eax
mov byte [ebp - 4], bl
mov dword [0x4af800], eax
cmp eax, ebx
jne 0x4228ea
push 0x441a74
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 1
call fcn.00428381
push eax
mov esi, 1
call fcn.004226f0
add esp, 4
test eax, eax
jne 0x422951
push 0x441a74
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 3
call fcn.00428381
call fcn.00422740
mov esi, dword [ebp - 0x9c]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x4af800]
xor ebx, ebx
cmp eax, ebx
je 0x422942
push eax
call fcn.00422cb0
mov dword [0x4af800], ebx
jmp 0x422949
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x42294f
ret
mov eax, dword [0x4af800]
inc dword [eax + 0x5bc]
push edi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp esi, ebx
jne 0x422975
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x4af800
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042396b
mov esp, ebp
pop ebp
ret
Function at 0x4229a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439c30
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x44465c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x4af800]
xor edi, edi
cmp ecx, edi
jne 0x4229eb
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 [ecx + 4]
cmp eax, 0xffffffff
jne 0x4229f8
mov dword [ebp - 0x14], edi
jmp 0x422a10
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x422ab6
mov ecx, dword [0x4af800]
mov eax, dword [ecx]
cmp eax, edi
je 0x4229d7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4229d7
mov ebx, 0x4af800
mov dword [ebp - 4], edi
call fcn.00422ad0
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x422a4e
push 0x441a74
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.00428381
mov ecx, dword [0x4af800]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x422a68
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x422a7d
push 0x441a74
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 4
call fcn.00428381
mov dword [ebp - 4], 0xffffffff
jmp 0x422aa2
mov eax, dword [0x4af800]
mov eax, dword [eax]
test eax, eax
je 0x422ab4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
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 0x422ad0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x422aff
xor ecx, ecx
jmp 0x422b0b
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x422bbb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
lea ecx, [ecx]
mov eax, dword [esi]
cmp dword [ebp - 8], eax
jne 0x422b2c
mov dword [ebp - 4], esi
jmp 0x422b90
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x422b89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x422b7c
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 dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x422b90
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x422b90
push 0x440d38
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x422b90
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x422bb3
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x422b20
mov eax, dword [ebp - 4]
pop edi
test eax, eax
jne 0x422bce
mov ecx, dword [ebx]
add ecx, 8
call fcn.00422d40
test eax, eax
je 0x422bce
mov edx, dword [ebp - 8]
mov dword [eax], edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x422be0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439c5b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x44465c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
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.00427d80
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [ebp - 4], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x422c76
push 0x441a74
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], 2
call fcn.00428381
mov ecx, dword [ebp + 0xc]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4233c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x447b54], 0
push esi
push edi
jne 0x423336
call fcn.004232a2
test eax, eax
je 0x42337b
mov eax, dword [0x447b54]
cmp eax, 1
jne 0x423357
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42337b
jmp 0x4233bd
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4233bd
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 0x42337f
xor eax, eax
jmp 0x4233bd
mov eax, dword [esi]
push dword [0x447b54]
call edi
mov edi, eax
test edi, edi
je 0x4233a1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4233bd
lea edi, [esi + 0xff0]
push esi
push dword [0x447b54]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4233a7
mov eax, esi
pop edi
pop esi
ret
jmp 0x423322

Function at 0x42396b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44465c]
jne 0x423975
repz ret
jmp fcn.00428d4e