joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405580
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00405640
mov eax, dword [0x412a84]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x4055a4
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x412a80], 1
mov byte [0x412a7c], bl
jne 0x4055fe
mov ecx, dword [0x41410c]
test ecx, ecx
je 0x4055ec
mov esi, dword [0x414108]
sub esi, 4
cmp esi, ecx
jb 0x4055ec
mov eax, dword [esi]
test eax, eax
je 0x4055e5
call eax
mov ecx, dword [0x41410c]
sub esi, 4
cmp esi, ecx
jae 0x4055d7
push 0x40f01c
push 0x40f014
call fcn.00405660
add esp, 8
push 0x40f024
push 0x40f020
call fcn.00405660
add esp, 8
test ebx, ebx
je 0x40561d
call fcn.00405650
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x412a84], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x405cd0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x412b90]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x405d12
call edi
mov esi, eax
test esi, esi
je 0x405cfc
mov eax, 1
jmp 0x405d0d
call ebp
mov ebx, eax
test ebx, ebx
je 0x405e1f
mov eax, 2
mov dword [0x412b90], eax
cmp eax, 1
jne 0x405db2
test esi, esi
jne 0x405d2b
call edi
mov esi, eax
test esi, esi
je 0x405e1f
cmp word [esi], 0
mov eax, esi
je 0x405d45
add eax, 2
cmp word [eax], 0
jne 0x405d33
add eax, 2
cmp word [eax], 0
jne 0x405d33
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x405da4
push edi
call fcn.00405340
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x405da4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x405d96
push ebx
call fcn.004052d0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x405e1f
test ebx, ebx
jne 0x405dc3
call ebp
mov ebx, eax
test ebx, ebx
je 0x405e1f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x405ddb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405dcb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405dcb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00405340
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x405dfd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x406550
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.004078d0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x40f754], eax
je 0x4065a8
push 0x74
push 1
call fcn.00405460
mov esi, eax
add esp, 8
test esi, esi
je 0x4065a8
mov eax, dword [0x40f754]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4065a8
push esi
call fcn.004065b0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x40f754]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x40663e
push 0x74
push 1
call fcn.00405460
mov esi, eax
add esp, 8
test esi, esi
je 0x406634
mov ecx, dword [0x40f754]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x406634
push esi
call fcn.004065b0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.00404f00
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x4068a0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40f770
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4068c4
add eax, 8
inc ebp
cmp eax, 0x40f800
jb 0x4068b5
cmp ecx, dword [ebp*8 + 0x40f770]
jne 0x406a6b
mov eax, dword [0x412a40]
cmp eax, 1
je 0x406a2d
test eax, eax
jne 0x4068f0
cmp dword [0x40f5a0], 1
je 0x406a2d
cmp ecx, 0xfc
je 0x406a6b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40692b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x406974
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x40d900
add ebx, ecx
push ebx
call fcn.00409340
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d8e0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40f774]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004092b0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x414000]
test eax, eax
je 0x406a3e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x406a48
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40f774]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4095c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x4095ec
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x414000]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x409627
push 2
push ebp
push ecx
call fcn.004094c0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x409789
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4096d1
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x409682
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40966f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x409652
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40977a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4096cd
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40964e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x409769
mov eax, dword [esp + 0x18]
test eax, eax
je 0x409725
cmp eax, 5
jne 0x40970e
call fcn.0040b300
mov dword [eax], 9
call fcn.0040b310
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0040b280
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x409745
cmp byte [ebp], 0x1a
jne 0x409745
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.0040b300
mov dword [eax], 0x1c
call fcn.0040b310
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4096cd
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4097ba
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4096d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4096d1
Function at 0x40bfa0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x412fb8]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x40bfe8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40bfcc
mov eax, 1
jmp 0x40bfe3
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x40c0c8
mov eax, 2
mov dword [0x412fb8], eax
cmp eax, 2
jne 0x40c008
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x40c0da
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40c023
mov ecx, dword [0x412e50]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x40c042
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00405340
mov esi, eax
add esp, 4
test esi, esi
jne 0x40c059
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40c0bf
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x40c0a0
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40c0bf
push esi
call fcn.004052d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x40c0cf
push esi
call fcn.004052d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.004052d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x403637
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x403680
mov ecx, dword [esp + 8]
test ecx, ecx
mov byte [esi + 4], 1
jne 0x403650
or ecx, 0xffffffff
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40367a
mov eax, dword [esi + 0xc]
test eax, eax
je 0x403673
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
and dword [esi + 0xc], 0
mov eax, 0xf4242
jmp 0x40367c
xor eax, eax
and byte [esi + 4], 0
pop esi
ret 4

Function at 0x40bdc6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
and dword [esi], 0
push edi
mov dword [esi + 4], 0x67
lea edi, [esi + 0x3ec]
mov dword [ebp - 4], 0xfa
push ebx
call fcn.0040ca88
mov ebx, eax
shl ebx, 0xc
call fcn.0040ca88
xor ebx, eax
shl ebx, 0xc
call fcn.0040ca88
xor ebx, eax
mov dword [edi], ebx
sub edi, 4
dec dword [ebp - 4]
jne 0x40bde6
or edx, 0xffffffff
mov ecx, SysReAllocString
lea eax, [esi + 0x14]
pop ebx
mov edi, dword [eax]
and edi, edx
or edi, ecx
mov dword [eax], edi
shr ecx, 1
shr edx, 1
add eax, 0x1c
test ecx, ecx
jne 0x40be17
xor eax, eax
lea ecx, [esi + 0x3f0]
inc eax
mov dword [ecx], eax
add ecx, 4
cmp eax, 0xfa
jl 0x40be32
and dword [esi + 0x7d4], 0
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x4111dc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41ce88
cmp edx, dword [eax]
je 0x4111fe
add eax, 8
inc ecx
cmp eax, 0x41cf18
jl 0x4111ef
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41ce88]
jne 0x41132c
mov eax, dword [0x424388]
cmp eax, 1
je 0x411306
test eax, eax
jne 0x41122f
cmp dword [0x41aa54], 1
je 0x411306
cmp edx, 0xfc
je 0x41132c
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411266
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040cab0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040cba0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4112a9
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040cba0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x417a40
push edi
call fcn.0040ce40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040cab0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040cac0
lea eax, [ebp - 0xa0]
push 0x417a20
push eax
call fcn.0040cac0
push dword [esi + 0x41ce8c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040cac0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00414876
add esp, 0x2c
pop edi
jmp 0x41132c
lea eax, [ebp + 8]
lea esi, [esi + 0x41ce8c]
push 0
push eax
push dword [esi]
call fcn.0040cba0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x5fc2bb
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov word [esp + 0xe], sp
call fcn.005fc010
add esi, 0xcad60ec4
call fcn.005fc4c0
les ebx, [eax - 0x32]
test eax, 0x24359c58
mov dword [esp + 0x17], eax
pop dword [esp + 6]
lea esp, [esp + 3]
mov dword [esp + 0x1c], eax
pushal
pop word [esp + 0xb]
jmp 0x5fc033
lea esp, [esp + 1]
mov dword [esp + 0x58], edi
lea esp, [esp + 0x58]
pushfd
xchg ah, bl
jmp 0x5fc2fd
push word [esp + 1]
jmp 0x5fc298
mov ecx, 0x7fa2abd2
mov di, word [esp]
clc
jns 0x5fc309
mov dl, byte [esp]
jmp 0x5fc36c
mov esi, dword [esp + 0x28]
jmp 0x5fc2c2
bswap ebp
setae dh
rcr ecx, 0xb
jnp 0x5fc2e4
jp 0x5fc2e4
mov dl, byte [esp]
jmp 0x5fc36c
mov al, 0xde
jmp 0x5fc3be
mov al, 0xde
mov cx, di
jmp 0x5fc3c1
lea edi, [esp]
rdtsc
rcr eax, 3
je 0x5fc34a
jne 0x5fc353
neg dh
jmp 0x5fc380
mov al, 0x1e
lea eax, reloc.WINMM.dll_midiStreamOut
mov ecx, esi
mov eax, 0x72a4055c
jmp 0x5fc5a3
mov ebp, esp
sub bl, ah
jns 0x5fc378
neg dh
mov al, 0x1e
lea eax, reloc.WINMM.dll_midiStreamOut
jmp 0x5fc388
mov cx, di
sub esp, 0xc0
jmp 0x5fc39f
setl dh
rdtsc
jmp 0x5fc03d
dec dx
ja 0x5fc3fd
setl dh
rdtsc
jmp 0x5fc03d

Function at 0x71bd69
Capabilities:
Execute anti-debugging instructions

Disassembly:
add edx, ebp
jmp 0x71bda9
setno ch
bsf di, si
neg ebx
mov ebp, 0x64115e7e
lea esp, [esp + 9]
jmp 0x71bd7f
inc bx
mov di, word [esp]
call 0x71bd69
or cl, byte [ebp - 0x79fbdb9c]
invalid
add esp, 0
mov edi, esi
btr esi, esp
xchg byte [esp], bl
mov byte [esp], ch
bsf si, ax
jmp 0x71bd5d
lea edi, [eax - 0xd9]
mov dword [esp + 3], eax
neg cx
mov bx, sp
push word [esp + 1]
mov bh, byte [esp + 7]
jmp 0x71bd33

Function at 0x71be1a
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x71be30
not ch
mov edi, esi
pop ecx
mov al, ah
push dword [esp + 0xf]
sub esp, 0x14
jmp 0x71be59
mov dword [esp + 0x1b], ebp
not dh
mov dx, word [esp + 1]
neg bx
shr dh, 7
bsr cx, cx
jmp 0x71bf8b
not bx
sub esp, 0x1e
not dh
mov di, dx
xchg cx, bx
xchg word [esp + 0x15], bx
jmp 0x71be88
sub esp, 0x1a
lea esp, [esp + 0x4f]
not ax
mov ecx, esi
xchg dh, al
neg ebp
jmp 0x71bea2
push esp
bsr ax, cx
cpuid
mov esi, 0xc87c74bc
cpuid
push dword [esp + 8]
jmp 0x71bebb
mov ecx, dword [esp + 0x21]
setae bh
xchg dword [esp + 0x28], eax
bswap ebp
xchg dh, al
neg bh
jmp 0x71beea

Function at 0x71c60c
Capabilities:
Execute anti-debugging instructions

Disassembly:
neg ah
xchg word [esp + 0xf], bp
mov bl, bh
jmp 0x71c66f
rcl bx, cl
clc
pop word [esp + 0xf]
mov word [esp + 0xf], sp
bswap esi
inc ax
jmp 0x71c69f
rdtsc
lea edx, [edx + edi]
push esp
not esi
lea ebp, reloc.WINMM.dll_midiStreamOut
xchg byte [esp + 0x10], al
jmp 0x71c650
lea ecx, [eax - 0x21]
ror ebx, 0xb
xchg esi, eax
xchg byte [esp + 4], dl
mov eax, 0x295db0b8
push word [esp + 0x18]
Function at 0x71cc3e
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov word [esp], di
push dword [esp + 1]
lea esp, [esp + 2]
mov di, 0xb833
mov dword [esp], esi
jmp 0x71cb6e
sub esp, 2
xchg byte [esp + 2], bl
btr ebx, edx
cpuid
mov byte [esp + 1], dh
xchg dword [esp], edi
jmp 0x71ca95
not ch
inc esi
mov dx, 0xf6c1
pop dx
mov dx, word [esp + 2]
neg ah
jmp 0x71cab0
lea eax, [eax - 0x49]
pop edx
mov eax, 0xc5442378
xchg byte [esp + 0x16], cl
jmp 0x71cb49
mov dword [esp + 6], ecx
pushal
lea edx, [edi + edi]
lea ecx, [ebx + edi]
setno bh
popal
jmp 0x71cae2
cpuid
mov bl, bh
shr ah, 1
mov ebp, dword [esp]
sub esp, 0x1e
bswap ecx
jmp 0x71caf8
mov bp, 0x9ffd
bswap edi
xchg byte [esp], cl
mov dl, dh
mov cl, 0x5a
mov bp, dx
jmp 0x71cb12
push dword [esp + 6]
pop dword [esp + 0x13]
mov edx, dword [esp + 5]
xchg esi, eax
xchg edi, ebx
push word [esp + 0xe]
jmp 0x71cb9f
bsf si, ax
pop word [esp + 1]
xchg dword [esp], eax
pop edi
cpuid
lea esi, [eax + ebx]
jmp 0x71cb37
not di
xchg ecx, edi
lea esp, [esp + 1]
and ecx, ecx
pop ax
mov ebx, esi
jmp 0x71cbed
mov edi, dword [esp + 3]
mov dl, dh
mov word [esp + 0xf], sp
rcr bh, 3
lea esp, [esp + 9]
jmp 0x71cb82
mov si, di
mov bx, word [esp]
neg ah
mov cl, 0xe2
bsr ax, bp
xchg dword [esp], ecx
jmp 0x71cad0
mov dx, sp
mov si, 0x7f5d
inc edi
rdtsc
neg ah
xchg ebx, ebp
jmp 0x71cc1e
mov ax, word [esp + 0xf]
mov eax, 0xbc309cee
pushal
pop dword [esp]
pushal
lea esp, [esp + 0x4d]
jmp 0x71cbcf
mov dx, 0xc77b
lea ecx, [edx + ebx]
btr esi, edx
lea edi, [ebx + ebp]
ror ebx, 5
setae ah
jmp 0x71d18f
mov dl, byte [esp]
mov ax, word [esp]
mov cl, 0x42
mov al, ah
lea edx, reloc.WINMM.dll_midiStreamOut
mov al, byte [esp]
jmp 0x71cc02
sub esp, 2
pop word [esp]
mov ebp, dword [esp + 2]
xchg esi, edx
mov ah, byte [esp + 1]
jmp 0x71cbb8
bswap esi

Function at 0x71cea4
Capabilities:
Execute anti-debugging instructions

Disassembly:
neg dh
btr edi, esp
mov ax, 0x3e29
xchg edx, eax
bsr cx, bp
jmp 0x71ce61
sub bl, ah
mov al, 0x36
mov bx, 0x3289
mov bx, word [esp + 3]
add al, dh
mov di, word [esp + 4]
jmp 0x71cd79
rdtsc
sub edi, eax
mov ecx, dword [esp + 0x1f]
xchg edx, eax
xchg dword [esp + 0x10], ebp
bswap ecx
jmp 0x71cdef
push dword [esp + 0x1c]
mov edi, dword [esp + 0x21]
xchg dword [esp + 0x1b], eax
mov bl, 0x50
bsf bx, si
neg ah
jmp 0x71cda6
mov byte [esp + 9], dh
push word [esp + 1]
mov bl, bh
mov bx, word [esp + 0x13]
jmp 0x71ce3e
xchg dh, al
setns dh
mov cl, ch
lea ecx, [eax + 0x11]
mov word [esp + 9], di
jmp 0x71cdd9
mov ax, 0xd9c9
pop edi
not ah
rdtsc
pop word [esp + 3]
lea esi, [eax*4]
jmp 0x71cdc3
xchg bh, cl
lea ecx, [ebx*4]
mov bp, dx
neg ax
sub bl, ah
lea ebx, [esp + ebx]
jmp 0x71ce8d
mov ah, byte [esp + 8]
popal
mov di, word [esp]
mov dx, 0xe35b
rdtsc
add ax, 0x1916
jmp 0x71ce1d
mov si, 0xaa93
mov dword [esp], ebp
xchg ebx, ecx
mov word [esp], bx
pushal
xchg ch, dl
jmp 0x71ce06
xchg word [esp], di
mov al, 0x56
lea edx, reloc.WINMM.dll_midiStreamOut
neg dh
lea ecx, [ecx + 0x93]
jmp 0x71cfd2
cmc
not si
mov ecx, dword [esp + 1]
pop bp
xchg word [esp], si
jmp 0x71ce73
setae ah
neg ah
xchg bh, cl
add esp, 1
jmp 0x71cd90
Function at 0x72174b
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
call fcn.00720116
mov dword [esp + 0x64], edi
lea esp, [esp + 0x64]
jmp 0x721773
lea esp, [esp + 3]
jmp 0x72172e
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x720111
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x721751
Function at 0x402b70
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x46b008], 0x8088405
inc edx
mov dword [ebx + 0x46b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402fc8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46b024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403060
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403040
xor eax, eax
push ebp
push 0x403039
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40307c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403040
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46b024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46b024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d24
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46d048], 0
je 0x403d85
cmp word [0x46d21c], 0xd7b2
jne 0x403d4d
cmp dword [0x46d224], 0
jbe 0x403d4d
mov eax, 0x46d218
call dword [0x46d234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46b070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403dac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46b034], 0
jne 0x403da1
push 0
push 0x46b068
push 0x46b070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret