joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100042f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x14]
stosb byte es:[edi], al
mov eax, dword [esp + 0x11c]
push eax
push ecx
call esi
lea edx, [esp + 0x14]
push str._TEMP_
push edx
call sub.MSVCRT.dll_strstr
mov ebx, dword [esp + 0x128]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1000438c
lea ecx, [esp + 0x14]
sub eax, ecx
test eax, eax
jle 0x10004369
mov ecx, eax
lea esi, [esp + 0x14]
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add eax, ebx
push eax
push 0x104
call fcn.10004150
add esp, 8
lea eax, [ebp + 6]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x14]
push ebx
push ecx
call esi
lea edx, [esp + 0x14]
push str._SystemRoot_
push edx
call sub.MSVCRT.dll_strstr
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x100043f5
lea ecx, [esp + 0x14]
sub eax, ecx
test eax, eax
jle 0x100043c6
mov ecx, eax
lea esi, [esp + 0x14]
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, ebx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [esp + 0x10]
add eax, 0xd
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
test ebp, ebp
jne 0x10004401
lea ecx, [esp + 0x14]
push ecx
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x10004ee0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x358
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x161]
mov byte [esp + 0x160], 0
push 0x104
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x370]
mov dword [esp + 0x20], ebp
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x164]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, 0x2800
mov dword [ebp + 0x38], 0
push esi
push 0x40
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea edx, [esp + 0x160]
mov ebx, eax
push edx
lea eax, [esp + 0x268]
push 0x1001faf4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x20]
lea edx, [esp + 0x264]
push ecx
push edx
call dword [0x10022740]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x10004f9b
lea eax, [esp + 0x13]
push 1
push eax
mov ecx, ebp
mov byte [esp + 0x1b], 0x68
call fcn.10008bd0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x358
ret 4
mov byte [ebx], 0x68
mov ebp, 1
jmp 0x10004fa9
mov esi, dword [esp + 0x14]
lea ecx, [esi - 0x208]
cmp ebp, ecx
jbe 0x10004fc9
add esi, 0x208
push 0x42
push esi
push ebx
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
mov edi, 0x1001faf0
lea esi, [esp + 0x4c]
mov dl, byte [esi]
mov cl, byte [edi]
mov al, dl
cmp dl, cl
jne 0x10004ffa
test al, al
je 0x10004ff6
mov cl, byte [esi + 1]
mov dl, byte [edi + 1]
mov al, cl
cmp cl, dl
jne 0x10004ffa
add esi, 2
add edi, 2
test al, al
jne 0x10004fd2
xor eax, eax
jmp 0x10004fff
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000509a
mov esi, 0x1001faec
lea edi, [esp + 0x4c]
mov dl, byte [edi]
mov cl, byte [esi]
mov al, dl
cmp dl, cl
jne 0x10005038
test al, al
je 0x10005034
mov cl, byte [edi + 1]
mov dl, byte [esi + 1]
mov al, cl
cmp cl, dl
jne 0x10005038
add edi, 2
add esi, 2
test al, al
jne 0x10005010
xor eax, eax
jmp 0x1000503d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000509a
mov dl, byte [esp + 0x20]
lea eax, [esp + 0x4c]
and dl, 0x10
push eax
mov byte [ebx + ebp], dl
inc ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [esp + 0x4c]
mov edx, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebp, eax
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp - 1], 0
mov eax, dword [esp + 0x3c]
mov dword [ebx + ebp], eax
mov ecx, dword [esp + 0x40]
mov dword [ebx + ebp + 4], ecx
mov edx, dword [esp + 0x34]
add ebp, 8
mov dword [ebx + ebp], edx
mov eax, dword [esp + 0x38]
mov dword [ebx + ebp + 4], eax
add ebp, 8
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [0x10022590]
test eax, eax
jne 0x10004fa5
mov ecx, dword [esp + 0x1c]
push ebp
push ebx
call fcn.10008bd0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x18]
push eax
call dword [0x100226c4]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x358
ret 4
Function at 0x100050e0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x550
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x560]
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x45c]
push 0x1001faf4
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x110]
lea edx, [esp + 0x458]
push ecx
push edx
call dword [0x10022740]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10005160
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x550
ret 4
cmp byte [esp + 0x13c], 0x2e
je 0x100051d0
test byte [esp + 0x110], 0x10
je 0x100051a4
lea eax, [esp + 0x13c]
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x258]
push 0x1001f944
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x250]
mov ecx, ebp
push eax
call fcn.100050e0
jmp 0x100051d0
lea ecx, [esp + 0x13c]
lea edx, [esp + 0xc]
push ecx
push edx
lea eax, [esp + 0x35c]
push 0x1001f944
push eax
call esi
lea ecx, [esp + 0x364]
push ecx
call fcn.10010080
add esp, 0x14
lea edx, [esp + 0x110]
push edx
push edi
call dword [0x10022590]
test eax, eax
jne 0x10005160
push edi
call dword [0x100226c4]
lea eax, [esp + 0xc]
push eax
call fcn.10010050
add esp, 4
neg eax
sbb eax, eax
pop edi
pop esi
pop ebp
neg eax
add esp, 0x550
ret 4

Function at 0x10005210
Capabilities:
Query environment variable

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
lea ebx, [ecx + 0x44]
push edi
mov dword [esp + 0x10], ecx
mov ecx, 0x41
xor eax, eax
mov edi, ebx
push 0x104
push ebx
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [0x100225b0]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10005264
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
lea eax, [esp + 0x18]
push ebp
push eax
push edi
call dword [0x1002268c]
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
add ebp, 0xa
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
mov byte [ebx], 0x69
mov eax, dword [esp + 0x20]
mov dword [ebx + 5], ecx
mov dword [ebx + 1], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea edi, [ebx + 9]
inc ecx
push ebp
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.10008bd0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x100054d0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x554
push ebp
push esi
mov esi, ecx
push edi
xor dl, dl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x255]
mov byte [esp + 0x254], dl
mov byte [esp + 0x10], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov ebp, dword [esp + 0x564]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push 0x104
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x258]
push str._s.
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x114]
lea ecx, [esp + 0x254]
push eax
push ecx
call dword [0x10022740]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1000556d
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x554
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + 0x144], 0x2e
je 0x100055ef
test byte [esp + 0x118], 0x10
je 0x100055b8
lea edx, [esp + 0x144]
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x468]
push str._s_s_
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x460]
mov ecx, esi
push edx
call fcn.100054d0
jmp 0x100055ef
lea eax, [esp + 0x144]
lea ecx, [esp + 0x35c]
push eax
push ebp
push str._s_s
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x35c]
push edx
call ebx
inc eax
lea ecx, [esi + 0x10]
push eax
lea eax, [esp + 0x360]
push eax
call fcn.100020b0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x118]
push ecx
push edx
call dword [0x10022590]
test eax, eax
jne 0x10005574
mov eax, dword [esp + 0x10]
push eax
call dword [0x100226c4]
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x554
ret 4

Function at 0x10005660
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x244
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.100023a0
push 0
mov ecx, edi
call fcn.100023d0
mov edi, dword [esp + 0x250]
mov dword [esi + 0x40], eax
lea eax, [esp + 8]
push 0x104
lea ecx, [edi + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov edx, dword [esi + 0x40]
push 0x104
lea eax, [esp + 0xc]
push edx
push eax
call fcn.100042f0
mov ecx, dword [edi]
add esp, 0xc
push 1
push 0
push 0
push ecx
call fcn.10017f60
mov ecx, dword [edi + 4]
xor edi, edi
add eax, ecx
mov ecx, esi
adc edx, edi
mov dword [esi + 0x148], eax
mov dword [esi + 0x14c], edx
mov edx, dword [esi + 0x40]
push edx
call fcn.10004850
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x10c]
push eax
push ecx
call dword [0x10022740]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000573a
mov eax, dword [esi + 0x38]
cmp eax, 4
je 0x1000573a
cmp eax, 2
je 0x1000573a
cmp eax, 6
je 0x1000573a
push 0x6d
mov ecx, esi
call fcn.10005440
push edi
call dword [0x100226c4]
pop edi
pop esi
add esp, 0x244
ret 4
mov ecx, esi
call fcn.10005760
push edi
call dword [0x100226c4]
pop edi
pop esi
add esp, 0x244
ret 4
Function at 0x10005920
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
push 0x104
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x114]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [esp + 8]
mov ecx, esi
push edx
call fcn.10004850
push 0x6f
mov ecx, esi
call fcn.10005440
pop edi
pop esi
add esp, 0x104
ret 4

Function at 0x10005980
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x208
push ebx
push esi
mov ebx, ecx
push edi
xor dl, dl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], dl
mov byte [esp + 0xc], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov esi, dword [esp + 0x218]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [esp + 0x110]
push 0x104
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0xc]
lea eax, [esi + eax + 1]
push 0x104
push ecx
push eax
call edi
lea edx, [esp + 0xc]
lea eax, [esp + 0x110]
push edx
push eax
call dword [0x10022758]
push 0x71
mov ecx, ebx
call fcn.10005440
pop edi
pop esi
pop ebx
add esp, 0x208
ret 4

Function at 0x100066b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x25c
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], bl
push 0x10022da4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x160]
push ecx
push ebx
push str.update
push edx
call fcn.10004520
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [esp + 0x268]
lea eax, [esp + 0x5c]
push eax
push ecx
call fcn.100100b0
add esp, 8
test al, al
ja 0x10006725
pop edi
pop ebx
add esp, 0x25c
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x5c]
rep stosd dword es:[edi], eax
push 0x10023314
push edx
lea eax, [esp + 0x168]
push str._s_baijinUPdate__s
push eax
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x30], str.WinSta0Superman
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
lea eax, [esp + 0x160]
push ecx
push edx
push ebx
push ebx
push 0x200
push ebx
push ebx
push ebx
lea ecx, [esp + 0x7c]
push eax
push ecx
call dword [0x1002276c]
test eax, eax
je 0x100067a5
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov bl, 1
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
pop esi
mov al, bl
pop edi
pop ebx
add esp, 0x25c
ret
Function at 0x10007290
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x10022468]
push ebx
push ebp
push esi
push edi
push 0
push 0x80
push 4
push 0
push 2
add eax, 0xd
push 0x40000000
push eax
call dword [0x100225b0]
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x18], 0
call dword [0x1002268c]
cmp eax, 0x3200000
jae 0x100072dd
push 2
push 0
push 0
push ebx
call dword [0x100226ec]
mov ebp, dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
test edi, edi
jle 0x1000730b
mov ecx, ebp
mov ebp, edi
sub ecx, esi
mov dl, byte [ecx + eax]
xor dl, 0x44
mov byte [eax], dl
inc eax
dec ebp
jne 0x100072ff
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebx
call dword [0x10022818]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x100077e0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x28
push esi
call fcn.10008120
lea ecx, [esp + 0x18]
mov esi, 0x10019274
lea eax, [esp + 0x18]
push ecx
lea ecx, [esp + 8]
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
call fcn.100078b0
mov dword [esp + 8], eax
lea edx, [esp + 0xc]
neg eax
sbb eax, eax
push str.krisig_jhaji
push 0x594
and eax, edx
push 0
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [0x1002246c], eax
jne 0x10007858
mov eax, dword [esp + 8]
mov dword [esp + 4], esi
jmp 0x10007878
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x10022468], eax
mov dword [esp + 4], esi
test eax, eax
mov eax, dword [esp + 8]
jne 0x10007893
test eax, eax
je 0x1000788c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
pop esi
add esp, 0x28
ret
test eax, eax
je 0x100078a7
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
pop esi
add esp, 0x28
ret
Function at 0x10007c70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x108
mov eax, dword [str.BBPP_5___Bf]
push ebx
push ebp
mov ebp, ecx
add eax, 0x10
push edi
lea ecx, [esp + 0x10]
xor edi, edi
push eax
push ecx
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x10]
push str..kEY
push edx
call fcn.10003fe0
add esp, 8
lea eax, [esp + 0x10]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [0x100225b0]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10007d18
push esi
push edi
push ebx
call dword [0x1002268c]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x10]
mov esi, eax
push 0
push ecx
push edi
push esi
push ebx
call dword [0x10022630]
xor eax, eax
test edi, edi
jbe 0x10007d03
mov cl, byte [eax + esi]
xor cl, 0x44
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x10007cf5
push edi
push esi
mov ecx, ebp
call fcn.10007c10
push esi
mov edi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x10007d90
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
push str.wINmM.dLl
call fcn.10007d30
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
mov esi, eax
push str.mixerGetNumDevs
push esi
call edi
push str.mixerOpen
push esi
mov dword [0x10022784], eax
call edi
push str.mixerClose
push esi
mov dword [0x10022788], eax
call edi
push str.mixerSetControlDetails
push esi
mov dword [0x1002278c], eax
call edi
push str.mixerGetLineInfoA
push esi
mov dword [0x10022790], eax
call edi
push str.mixerGetLineControlsA
push esi
mov dword [0x10022794], eax
call edi
push str.mixerGetControlDetailsA
push esi
mov dword [0x10022798], eax
call edi
push str.waveInClose
push esi
mov dword [0x1002279c], eax
call edi
push str.waveInOpen
push esi
mov dword [0x100227a8], eax
call edi
push str.waveInPrepareHeader
push esi
mov dword [0x100227a4], eax
call edi
push str.waveInUnprepareHeader
push esi
mov dword [0x100227ac], eax
call edi
push str.waveInAddBuffer
push esi
mov dword [0x100227b0], eax
call edi
push str.waveInStart
push esi
mov dword [0x100227b4], eax
call edi
push str.waveInStop
push esi
mov dword [0x100227b8], eax
call edi
push str.waveInReset
push esi
mov dword [0x100227bc], eax
call edi
push str.waveOutClose
push esi
mov dword [0x100227c0], eax
call edi
push str.waveOutOpen
push esi
mov dword [0x100227cc], eax
call edi
push str.waveOutPrepareHeader
push esi
mov dword [0x100227c8], eax
call edi
push str.waveOutUnprepareHeader
mov dword [0x100227d0], eax
push esi
call edi
push str.waveOutWrite
push esi
mov dword [0x100227d4], eax
call edi
push str.waveOutReset
push esi
mov dword [0x100227d8], eax
call edi
push str.waveInGetNumDevs
push esi
mov dword [0x100227dc], eax
call edi
push str.waveOutGetNumDevs
push esi
mov dword [0x100227a0], eax
call edi
push str.mixerGetDevCapsA
push esi
mov dword [0x100227c4], eax
call edi
push str.waveInGetDevCapsA
push esi
mov dword [0x1002277c], eax
call edi
pop edi
mov dword [0x10022780], eax
pop esi
ret
Function at 0x10007ef0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
push 0x1001f854
call fcn.10007d30
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
mov esi, eax
push str.AttachConsole
push esi
call edi
push str.AllocConsole
push esi
mov dword [0x100227f8], eax
call edi
push str.FreeConsole
push esi
mov dword [0x1002262c], eax
call edi
push str.FillConsoleOutputCharacterA
push esi
mov dword [0x100225f0], eax
call edi
push str.WriteConsoleOutputA
push esi
mov dword [0x100224ac], eax
call edi
push str.GenerateConsoleCtrlEvent
push esi
mov dword [0x10022608], eax
call edi
push str.GetConsoleCP
push esi
mov dword [0x10022724], eax
call edi
push str.SetConsoleCP
push esi
mov dword [0x10022574], eax
call edi
push str.GetConsoleOutputCP
push esi
mov dword [0x100224dc], eax
call edi
push str.SetConsoleOutputCP
push esi
mov dword [0x10022544], eax
call edi
push str.GetConsoleScreenBufferInfo
push esi
mov dword [0x10022760], eax
call edi
push str.GetConsoleTitleA
push esi
mov dword [0x100225ec], eax
call edi
push str.GetConsoleWindow
push esi
mov dword [0x100224e0], eax
call edi
push str.ReadConsoleOutputA
push esi
mov dword [0x10022744], eax
call edi
push str.SetConsoleCtrlHandler
push esi
mov dword [0x100226cc], eax
call edi
push str.SetConsoleScreenBufferSize
push esi
mov dword [0x10022750], eax
call edi
push str.SetConsoleWindowInfo
push esi
mov dword [0x100225d8], eax
call edi
push str.WriteConsoleInputA
push esi
mov dword [0x100225d4], eax
call edi
push str.GetStdHandle
mov dword [0x100225ac], eax
push esi
call edi
pop edi
mov dword [0x100225bc], eax
pop esi
ret

Function at 0x10008010
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
push str.advapi32.dll
call fcn.10007d30
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
mov esi, eax
push str.FreeSid
push esi
call edi
push str.GetLengthSid
push esi
mov dword [0x1002267c], eax
call edi
push str.GetTokenInformation
push esi
mov dword [0x10022754], eax
call edi
push str.InitializeAcl
push esi
mov dword [0x100225a8], eax
call edi
push str.InitializeSecurityDescriptor
push esi
mov dword [0x100224f4], eax
call edi
push str.IsValidSid
push esi
mov dword [0x1002281c], eax
call edi
push str.LookupAccountNameA
push esi
mov dword [0x1002256c], eax
call edi
push str.LookupAccountSidA
push esi
mov dword [0x100226b0], eax
call edi
push str.LookupPrivilegeValueA
push esi
mov dword [0x100226c0], eax
call edi
push str.LsaClose
push esi
mov dword [0x100224fc], eax
call edi
push str.LsaFreeMemory
push esi
mov dword [0x100224b4], eax
call edi
push str.LsaOpenPolicy
push esi
mov dword [0x1002266c], eax
call edi
push str.LsaRetrievePrivateData
push esi
mov dword [0x10022514], eax
call edi
push str.SetSecurityDescriptorDacl
push esi
mov dword [0x10022578], eax
call edi
push str.AddAccessAllowedAce
push esi
mov dword [0x100226bc], eax
call edi
push str.AdjustTokenPrivileges
push esi
mov dword [0x1002261c], eax
call edi
push str.AllocateAndInitializeSid
push esi
mov dword [0x10022564], eax
call edi
push str.BuildExplicitAccessWithNameA
push esi
mov dword [0x10022494], eax
call edi
pop edi
mov dword [0x100226fc], eax
pop esi
ret