joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448e00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov dword [esp + 0x10], ecx
cmp dword [esi], 0
jne 0x448f83
mov ebp, dword [esp + 0x28]
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
lea eax, [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x1c]
push 0xc
push ecx
push ebp
call ebx
mov eax, 0x475c84
lea edi, [esp + 0x14]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x448e62
test cl, cl
je 0x448e5c
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x448e62
add edi, 2
add eax, 2
test cl, cl
jne 0x448e3c
xor edi, edi
xor eax, eax
jmp 0x448e69
sbb eax, eax
sbb eax, 0xffffffff
xor edi, edi
cmp eax, edi
jne 0x448f83
lea eax, [esp + 0x24]
push edi
push eax
push 4
push esi
push ebp
call ebx
cmp dword [esi], edi
je 0x448f72
lea ecx, [esp + 0x24]
push edi
lea eax, [esi + 4]
push ecx
push 2
push eax
push ebp
call ebx
lea edx, [esp + 0x24]
push edi
lea eax, [esi + 6]
push edx
push 2
push eax
push ebp
call ebx
lea eax, [esp + 0x24]
push 0
lea edi, [esi + 8]
push eax
push 1
push edi
push ebp
call ebx
lea ecx, [esp + 0x24]
push 0
lea eax, [esi + 9]
push ecx
push 1
push eax
push ebp
call ebx
xor edx, edx
xor eax, eax
mov dl, byte [edi]
mov ax, word [esi + 6]
imul edx, eax
xor ecx, ecx
mov cx, word [esi + 4]
imul edx, ecx
push edx
push 0
call dword [sym.imp.kernel32.dll_GlobalAlloc]
xor ecx, ecx
mov dword [esi + 0xc], eax
cmp eax, ecx
jne 0x448f02
mov byte [edi], cl
mov dword [esi], ecx
mov byte [esi + 9], cl
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x18
lea edx, [esp + 0x24]
push ecx
push edx
xor ecx, ecx
mov cl, byte [edi]
xor edx, edx
mov dx, word [esi + 6]
imul ecx, edx
xor edx, edx
mov dx, word [esi + 4]
imul ecx, edx
push ecx
push eax
push ebp
call ebx
mov eax, dword [esp + 0x2c]
xor ebx, ebx
cmp eax, ebx
jle 0x448f3c
mov edi, eax
mov ecx, dword [esp + 0x10]
push esi
call fcn.00449180
dec edi
jne 0x448f2f
mov eax, dword [esp + 0x30]
mov dword [esi + 0x10], ebx
cmp eax, ebx
je 0x448f65
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push esi
call fcn.00448b10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x18
mov dword [esi + 0x14], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x18
mov byte [esi + 8], 0
mov byte [esi + 9], 0
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x18
Function at 0x44adb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x44af13
mov edi, dword [sym.imp.kernel32.dll_ReadFile]
lea ecx, [esp + 0x34]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0xc
push edx
push esi
call edi
test eax, eax
je 0x44af0c
cmp dword [esp + 0x34], 0xc
jne 0x44af0c
cmp dword [esp + 0x14], 0x46464952
jne 0x44af0c
cmp dword [esp + 0x1c], 0x45564157
jne 0x44af0c
lea eax, [esp + 0x34]
push 0
mov ebx, 8
push eax
lea ecx, [esp + 0x14]
push ebx
push ecx
push esi
call edi
test eax, eax
je 0x44af0c
cmp dword [esp + 0x34], ebx
jne 0x44af0c
cmp dword [esp + 0xc], 0x20746d66
jne 0x44af0c
lea edx, [esp + 0x34]
push 0
push edx
lea eax, [esp + 0x28]
push 0x10
push eax
push esi
call edi
test eax, eax
je 0x44af0c
cmp dword [esp + 0x34], 0x10
jne 0x44af0c
mov ecx, dword [esp + 0x20]
cmp cx, 1
jne 0x44af0c
mov eax, dword [esp + 0x38]
push 0
mov edx, eax
mov word [eax + 0x10], 0
lea eax, [esp + 0x10]
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x38]
push edx
push ebx
push eax
push esi
call edi
test eax, eax
je 0x44af0c
cmp dword [esp + 0x34], ebx
jne 0x44af0c
cmp dword [esp + 0xc], 0x61746164
jne 0x44af0c
mov ecx, dword [esp + 0x10]
push ecx
push 0
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x44af0c
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x34]
push 0
push edx
push eax
push ebx
push esi
call edi
test eax, eax
je 0x44af05
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
cmp ecx, eax
je 0x44af1c
push ebx
call dword [sym.imp.kernel32.dll_GlobalFree]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x24
ret
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x44af37
push ebx
call dword [sym.imp.kernel32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [edx], eax
mov eax, ebx
pop ebx
add esp, 0x24
ret
Function at 0x44d7b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
je 0x44d88d
call fcn.0044bdf0
mov eax, dword [esp + 0x28]
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x44d7ff
mov ecx, ebp
call fcn.0044bdf0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0xe
push edx
push edi
call ebx
test eax, eax
je 0x44d87f
cmp dword [esp + 0x10], 0xe
jne 0x44d87f
mov esi, 0x475d00
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x44d84e
test cl, cl
je 0x44d84a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x44d84e
add eax, 2
add esi, 2
test cl, cl
jne 0x44d82a
xor eax, eax
jmp 0x44d853
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x44d87f
push eax
lea eax, [esp + 0x14]
lea esi, [ebp + 0x78]
push eax
push 4
push esi
push edi
call ebx
mov eax, dword [esi]
test eax, eax
jle 0x44d8aa
shl eax, 4
push eax
push 0
call dword [sym.imp.kernel32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp + 0x7c], eax
jne 0x44d899
mov ecx, ebp
call fcn.0044bdf0
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov edx, dword [esi]
lea ecx, [esp + 0x10]
push 0
push ecx
shl edx, 4
push edx
push eax
push edi
call ebx
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, ebp
call fcn.0044c760
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 4
Function at 0x453530
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push edi
cmp dword [ebp], 0
je 0x453549
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10
mov eax, dword [esp + 0x24]
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x453578
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
push esi
lea ecx, [esp + 0x28]
push 0
push ecx
lea edx, [esp + 0x18]
push 0x14
push edx
push edi
call ebx
mov esi, 0x475d5c
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4535bd
test cl, cl
je 0x4535b9
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4535bd
add eax, 2
add esi, 2
test cl, cl
jne 0x453599
xor eax, eax
jmp 0x4535c2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop esi
je 0x4535d9
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push 1
push ecx
push edx
lea eax, [ebp + 4]
push edi
push eax
mov ecx, 0x7324f8
call fcn.00448e00
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [ebp + 0x1c]
push 0x8c
push edx
push edi
call ebx
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp], 1
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 0x10

Function at 0x453630
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x453648
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10
mov ebp, dword [esp + 0x24]
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
push esi
lea eax, [esp + 0x28]
push 0
push eax
lea ecx, [esp + 0x18]
push 0x14
push ecx
push ebp
call ebx
mov esi, 0x475d5c
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x453691
test cl, cl
je 0x45368d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x453691
add eax, 2
add esi, 2
test cl, cl
jne 0x45366d
xor eax, eax
jmp 0x453696
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop esi
je 0x4536a6
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0x10
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push 1
push ecx
push edx
lea eax, [edi + 4]
push ebp
push eax
mov ecx, 0x7324f8
call fcn.00448e00
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [edi + 0x1c]
push 0x8c
push edx
push ebp
call ebx
mov dword [edi], 1
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 0x10
Function at 0x457f20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x180
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov ecx, 0x20
lea esi, [ebx + 0x11b4]
lea edi, [esp + 0x110]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x10], 0
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], 6
mov dword [esp + 0x20], 0xe
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x28], 0x1b
mov dword [esp + 0x2c], 0x1c
mov dword [esp + 0x30], 2
mov dword [esp + 0x34], 4
mov dword [esp + 0x38], 7
mov dword [esp + 0x3c], 0xd
mov dword [esp + 0x40], 0x10
mov dword [esp + 0x44], 0x1a
mov dword [esp + 0x48], 0x1d
mov dword [esp + 0x4c], 0x2a
mov dword [esp + 0x50], 3
mov dword [esp + 0x54], 8
mov dword [esp + 0x58], 0xc
mov dword [esp + 0x5c], 0x11
mov dword [esp + 0x60], 0x19
mov dword [esp + 0x64], 0x1e
mov dword [esp + 0x68], 0x29
mov dword [esp + 0x6c], 0x2b
mov dword [esp + 0x70], 9
mov dword [esp + 0x74], 0xb
mov dword [esp + 0x78], 0x12
mov dword [esp + 0x7c], 0x18
mov dword [esp + 0x80], 0x1f
mov dword [esp + 0x84], 0x28
mov dword [esp + 0x88], 0x2c
mov dword [esp + 0x8c], 0x35
mov dword [esp + 0x90], 0xa
mov dword [esp + 0x94], 0x13
mov dword [esp + 0x98], 0x17
mov dword [esp + 0xa0], 0x27
mov dword [esp + 0xa4], 0x2d
mov dword [esp + 0xa8], 0x34
mov dword [esp + 0xac], 0x36
mov dword [esp + 0xb0], 0x14
mov dword [esp + 0xb4], 0x16
mov dword [esp + 0xb8], 0x21
mov dword [esp + 0xbc], 0x26
mov dword [esp + 0xc0], 0x2e
mov dword [esp + 0xc4], 0x33
mov dword [esp + 0xc8], 0x37
mov dword [esp + 0xcc], 0x3c
mov dword [esp + 0xd0], 0x15
mov dword [esp + 0xd4], 0x22
mov dword [esp + 0xd8], 0x25
mov dword [esp + 0xdc], 0x2f
mov dword [esp + 0xe0], 0x32
mov dword [esp + 0xe4], 0x38
mov dword [esp + 0xe8], 0x3b
mov dword [esp + 0xec], 0x3d
mov dword [esp + 0xf0], 0x23
mov dword [esp + 0xf4], 0x24
mov dword [esp + 0xf8], 0x30
mov dword [esp + 0xfc], 0x31
mov dword [esp + 0x100], 0x39
mov dword [esp + 0x104], 0x3a
mov dword [esp + 0x108], 0x3e
mov dword [esp + 0x10c], 0x3f
lea eax, [esp + 0x110]
lea ecx, [esp + 0x10]
mov esi, 8
mov edx, 8
mov edi, dword [ecx]
mov bp, word [eax]
add eax, 2
add ecx, 4
dec edx
mov word [ebx + edi*2 + 0x11b4], bp
jne 0x4581bd
dec esi
jne 0x4581b8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180
ret
Function at 0x45b218
Capabilities:
Clear file content
Encode data using xor
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e2f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x1080]
mov dword [esp + 0x14], 1
call fcn.0045fa20
lea ecx, [esi + 0x1064]
mov byte [esp + 0x14], 0
call fcn.0045f480
add esi, 0x28
mov dword [esp + 4], esi
mov eax, dword [esi]
mov dword [esp + 0x14], 2
cmp eax, 0xffffffff
je 0x45b38f
push ebp
push edi
lea edi, [esi + 0x101c]
push edi
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov eax, dword [esi + 0x1034]
test eax, eax
je 0x45b284
mov ecx, dword [esi + 0x1038]
cmp ecx, eax
mov eax, 0x475df8
ja 0x45b289
mov eax, 0x47cc04
push eax
xor eax, eax
mov ax, word [esi + 0x102a]
xor ecx, ecx
mov cx, word [esi + 0x1028]
push eax
xor edx, edx
xor eax, eax
mov dx, word [esi + 0x1026]
mov ax, word [esi + 0x1024]
push ecx
push edx
xor ecx, ecx
push eax
mov cx, word [esi + 0x1022]
xor edx, edx
mov dx, word [esi + 0x101e]
xor eax, eax
mov ax, word [edi]
push ecx
push edx
push eax
push 0x475da0
lea ebp, [esi + 0x1c]
call fcn.00460980
add esp, 4
push eax
push ebp
call fcn.0046105f
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0x28
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x1030]
not ecx
dec ecx
test eax, eax
je 0x45b327
test ecx, ecx
jle 0x45b357
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x1030]
add edx, 2
mov dword [esi + 0x1030], edx
add dl, 0x43
xor byte [eax], dl
inc eax
lea edx, [edi + eax]
cmp edx, ecx
jl 0x45b309
jmp 0x45b357
test ecx, ecx
jle 0x45b357
mov edi, 0xffffffe4
push ebx
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x102c]
lea edx, [edx + edx*2 + 1]
mov dword [esi + 0x102c], edx
mov bl, byte [eax]
add dl, 0x46
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [eax + edi]
cmp edx, ecx
jl 0x45b335
pop ebx
cmp dword [esi + 0x1034], 0x3e7
je 0x45b375
lea eax, [esp + 0x10]
push 0
push eax
push ecx
mov ecx, dword [esi]
push ebp
push ecx
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, dword [esi]
push edx
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov eax, dword [esi]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
mov dword [esi], 0xffffffff
pop ebp
add esi, 4
push esi
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45c9d0
Capabilities:
Check for software breakpoints
Encode data using xor
Write file on windows

Disassembly:
mov eax, 0x1008
call fcn.00461a80
push ebx
push esi
mov esi, dword [esp + 0x1014]
cmp dword [esi], 0xffffffff
je 0x45cb53
mov eax, dword [esi + 0x1034]
test eax, eax
je 0x45ca17
mov ecx, dword [esp + 0x1018]
cmp byte [ecx], 0x21
je 0x45ca17
mov ecx, dword [esi + 0x1038]
cmp ecx, eax
ja 0x45cb53
inc ecx
mov dword [esi + 0x1038], ecx
lea ebx, [esi + 4]
push ebx
mov dword [esp + 0xc], ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1018]
lea edx, [esp + 0x101c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00462122
add esp, 0xc
lea edx, [esi + 0x101c]
push edx
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov eax, fcn.0046105f
cmp byte [eax], 0xcc
je 0x45cb4c
mov ecx, dword [sym.imp.kernel32.dll_WriteFile]
cmp byte [ecx], 0xcc
je 0x45cb4c
xor eax, eax
push ebp
mov ax, word [esi + 0x102a]
lea edx, [esp + 0x14]
push edi
push edx
xor ecx, ecx
push eax
mov cx, word [esi + 0x1028]
xor edx, edx
mov dx, word [esi + 0x1026]
xor eax, eax
mov ax, word [esi + 0x1024]
push ecx
push edx
push eax
push 0x4764cc
lea ebp, [esi + 0x1c]
call fcn.00460980
add esp, 4
push eax
push ebp
call fcn.0046105f
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x1030]
not ecx
dec ecx
test eax, eax
je 0x45cafe
test ecx, ecx
jle 0x45cb28
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, 2
mov ebx, dword [esi + 0x1030]
add ebx, edx
mov dword [esi + 0x1030], ebx
add bl, 0x43
xor byte [eax], bl
inc eax
lea ebx, [edi + eax]
cmp ebx, ecx
jl 0x45cadd
mov ebx, dword [esp + 0x10]
jmp 0x45cb28
test ecx, ecx
jle 0x45cb28
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x102c]
lea edx, [edx + edx*2 + 1]
mov dword [esi + 0x102c], edx
add dl, 0x46
xor byte [eax], dl
inc eax
lea edx, [eax + edi]
cmp edx, ecx
jl 0x45cb0b
lea eax, [esp + 0x14]
push 0
push eax
push ecx
mov ecx, dword [esi]
push ebp
push ecx
call dword [sym.imp.kernel32.dll_WriteFile]
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x1008
ret
push ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
pop esi
pop ebx
add esp, 0x1008
ret
Function at 0x45d220
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x1c]
test al, al
jne 0x45d22e
mov al, 1
pop esi
ret
push edi
push 0x476770
lea edi, [esi + 0x28]
call fcn.004609f0
add esp, 4
push eax
push edi
call fcn.0045c9d0
mov ecx, dword [esi + 0x10c8]
lea eax, [esi + 0x10f4]
push eax
push ecx
call dword [esi + 0x114c]
mov eax, dword [esi + 0x14]
add esp, 0x10
test eax, eax
mov byte [esi + 0x1c], 0
je 0x45d26f
push eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov edx, dword [esi + 0x10f0]
push 0x7d0
push edx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x45d2ae
push 0x476758
call fcn.004609f0
add esp, 4
push eax
push edi
call fcn.0045c9d0
mov eax, dword [esi + 0x10f0]
add esp, 8
push 0
push eax
call dword [sym.imp.kernel32.dll_TerminateThread]
mov ecx, dword [esi + 0x10f0]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi + 0x10ec]
test eax, eax
je 0x45d2cc
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
push 0x476744
mov dword [esi + 0x1148], 0
mov dword [esi + 0x114c], 0
call fcn.004609f0
add esp, 4
push eax
push edi
call fcn.0045c9d0
add esp, 8
mov al, 1
pop edi
pop esi
ret

Function at 0x45d3c0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
xor edi, edi
call dword [sym.imp.advapi32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x45d40b
push edi
push edi
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.advapi32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x45d40b
lea edi, [esp + 0x10]
push 0x4767c8
call fcn.004609f0
mov ebx, dword [sym.imp.kernel32.dll_CreateMutexA]
add esp, 4
push eax
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x45d471
push 0x4767bc
call fcn.004609f0
add esp, 4
push eax
push esi
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x45d471
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
call esi
push eax
push 0x476798
call fcn.004609f0
add esp, 4
add ebp, 0x28
push eax
push ebp
call fcn.0045c9d0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45d48f
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
push 0
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x45d4ad
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x45d4c0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
xor edi, edi
call dword [sym.imp.advapi32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x45d50b
push edi
push edi
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.advapi32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x45d50b
lea edi, [esp + 0x10]
push 0x476570
call fcn.004609f0
mov ebx, dword [sym.imp.kernel32.dll_CreateMutexA]
add esp, 4
push eax
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x45d573
push 0x476564
call fcn.004609f0
add esp, 4
push eax
push esi
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x45d573
mov esi, dword [sym.imp.kernel32.dll_GetLastError]
call esi
call esi
push eax
push 0x47681c
call fcn.004609f0
add esp, 4
add ebp, 0x28
push eax
push ebp
call fcn.0045c9d0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45d5d7
push 0x4767f8
lea edi, [ebp + 0x28]
call fcn.004609f0
add esp, 4
push eax
push edi
call fcn.0045c9d0
mov eax, dword [esp + 0x3c]
add esp, 8
push eax
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x45d5d7
push 0x4767dc
call fcn.004609f0
add esp, 4
push eax
push edi
call fcn.0045c9d0
add esp, 8
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
push esi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 4
Function at 0x45df10
Capabilities:
Link many functions at runtime

Disassembly:
mov al, byte [0x732f74]
push esi
test al, al
push edi
je 0x45df20
pop edi
mov al, 1
pop esi
ret
push 0x476b48
call fcn.004609f0
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x45df3f
pop edi
xor al, al
pop esi
ret
push 0x476b28
call fcn.004609f0
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
add esp, 4
push eax
push esi
call edi
test eax, eax
mov dword [0x732f3c], eax
jne 0x45df64
pop edi
xor al, al
pop esi
ret
push 0x476b14
call fcn.004609f0
add esp, 4
push eax
push esi
call edi
test eax, eax
mov dword [0x732e2c], eax
jne 0x45df83
pop edi
xor al, al
pop esi
ret
push 0x476b00
call fcn.004609f0
add esp, 4
push eax
push esi
call edi
test eax, eax
mov dword [0x732f44], eax
jne 0x45dfa2
pop edi
xor al, al
pop esi
ret
push 0x476aec
call fcn.004609f0
add esp, 4
push eax
push esi
call edi
test eax, eax
mov dword [0x732f40], eax
jne 0x45dfc1
pop edi
xor al, al
pop esi
ret
push 0x476ad8
call fcn.004609f0
add esp, 4
push eax
push esi
call edi
test eax, eax
mov dword [0x732e30], eax
jne 0x45dfe0
pop edi
xor al, al
pop esi
ret
mov al, 1
pop edi
mov byte [0x732f74], al
pop esi
ret
Function at 0x45f0d0
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46e32b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x476fac
mov dword [esp + 0x30], 4
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 1
call fcn.004609f0
add esp, 4
push eax
push reloc.dsound.dll_DirectSoundCreate
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
jne 0x45f256
cmp dword [esp + 0xc], 2
jne 0x45f1fd
mov ecx, dword [esp + 0x42c]
lea edx, [esp + 0x10]
lea eax, [esp]
push edx
push eax
push 0
push 0
push ecx
call fcn.004609f0
mov edx, dword [esp + 0x1c]
add esp, 4
push eax
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x45f1fd
push ebx
push edi
lea ecx, [esp + 0x1c]
call fcn.00460e30
mov ebx, dword [esp + 0x430]
lea eax, [esp + 0xc]
push eax
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x430], 0
call fcn.00460e70
test al, al
jne 0x45f1e7
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
call edi
mov eax, dword [0x732f6c]
test eax, eax
je 0x45f1e7
push esi
mov esi, dword [esp + 0x420]
call edi
push eax
push esi
push ebx
push 0x476f8c
call fcn.004609f0
mov ecx, dword [0x732f6c]
add esp, 4
add ecx, 0x28
push eax
push ecx
call fcn.0045c9d0
add esp, 0x14
pop esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x428], 0xffffffff
call fcn.00403790
pop edi
pop ebx
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esp + 4]
mov ecx, dword [esp]
cmp eax, ecx
je 0x45f281
mov edx, dword [0x732f6c]
test edx, edx
je 0x45f23f
push ecx
push eax
push 0x476f74
call fcn.004609f0
add esp, 4
push eax
mov eax, dword [0x732f6c]
add eax, 0x28
push eax
call fcn.0045c9d0
add esp, 0x10
xor al, al
mov ecx, dword [esp + 0x418]
mov dword fs:[0], ecx
add esp, 0x424
ret
mov ecx, dword [0x732f6c]
test ecx, ecx
je 0x45f281
push eax
push 0x476f5c
call fcn.004609f0
mov ecx, dword [0x732f6c]
add esp, 4
add ecx, 0x28
push eax
push ecx
call fcn.0045c9d0
add esp, 0xc
mov ecx, dword [esp + 0x418]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x424
ret