joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7312e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push 1
pop edx
mov al, byte [ecx]
cmp dword [ebp + 0xc], edx
mov byte [ebp + 0xb], al
jle 0x7312ff
xor al, byte [edx + ecx]
inc edx
cmp edx, dword [ebp + 0xc]
mov byte [ebp + 0xb], al
jl 0x7312f3
lea eax, [ebp + 0xb]
push 1
push eax
lea eax, [ebp + 0xe]
push eax
call fcn.00743830
mov al, byte [ebp + 0xe]
add esp, 0xc
pop ebp
ret

Function at 0x7315ae
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x27a4
call fcn.007c1eb0
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], 1
push esi
push esi
push 3
push esi
push 3
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, reloc.ws2_32.dll_WSASetLastError
je 0x731675
push edi
push 0xc
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.007c3430
mov edi, 0x2710
lea eax, reloc.ws2_32.dll_WSASetLastError
push edi
push esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.007c3430
add esp, 0x18
lea eax, [ebp - 8]
push esi
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push edi
push eax
lea eax, [ebp - 0x14]
push 0xc
push eax
push 0x2d1400
push ebx
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
pop edi
je 0x73166e
lea eax, [ebp - 0x94]
push eax
push 1
push dword [ebp - 0x278c]
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.007313d0
lea eax, [ebp - 0x94]
push eax
call fcn.00743349
lea eax, [ebp - 0x94]
push eax
push dword [ebp + 0xc]
call fcn.007c9c00
add esp, 0x1c
mov dword [ebp - 4], esi
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x731b9a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
call fcn.00743f09
cmp eax, 1
jne 0x731cb1
lea eax, [ebp - 0x18]
push eax
call fcn.00743f1d
test eax, eax
pop ecx
je 0x731bc6
push 0x68
jmp 0x731d29
lea eax, [ebp - 8]
mov ebx, 0xf003f
push eax
push ebx
push 0
mov esi, 0x80000002
push 0x801454
push esi
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x731bfe
push dword [ebp - 0x14]
push 4
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_RegSetKeySecurity]
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 4]
mov edi, 0x801434
push eax
lea eax, [ebp - 0x38]
push eax
push edi
push esi
mov dword [ebp - 4], 0x1e
call dword [sym.imp.advapi32.dll_RegQueryValueA]
test eax, eax
jne 0x731c2b
push dword [ebp + 8]
push 0x801430
jmp 0x731d17
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push edi
push esi
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
je 0x731c53
mov eax, 0xc8001007
jmp 0x731d2a
push ebx
call fcn.007cf807
push eax
mov ebx, 0x801430
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.007e5e9e
lea eax, [ebp - 0x38]
push eax
call fcn.007c7760
add esp, 0x14
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x38]
push eax
push 1
push edi
push esi
call dword [sym.imp.advapi32.dll_RegSetValueW]
test eax, eax
jne 0x731c9f
push dword [ebp + 8]
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.007e5efa
add esp, 0xc
xor esi, esi
jmp 0x731ca4
mov esi, 0xc8001007
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
jmp 0x731d2a
lea eax, [ebp - 4]
mov edi, 0x801434
push eax
lea eax, [ebp - 0x38]
push eax
mov esi, 0x80000002
push edi
push esi
mov dword [ebp - 4], 0x1e
call dword [sym.imp.advapi32.dll_RegQueryValueA]
test eax, eax
je 0x731c1e
push 0
call fcn.00743df2
push eax
mov ebx, 0x801430
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.007e5e9e
lea eax, [ebp - 0x38]
push eax
call fcn.007c7760
add esp, 0x14
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x38]
push eax
push 1
push edi
push esi
call dword [sym.imp.advapi32.dll_RegSetValueW]
test eax, eax
jne 0x731d27
push dword [ebp + 8]
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.007e5efa
add esp, 0xc
xor eax, eax
jmp 0x731d2a
push 0x69
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x731fac
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
or esi, reloc.ws2_32.dll_WSASetLastError
call fcn.00743f09
cmp eax, 1
jne 0x732036
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push 6
push eax
call fcn.007374b1
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x732036
push ebx
mov ebx, dword [ebp + 8]
push edi
and byte [ebx + 0x88], al
lea esi, [ebx + 0x88]
xor edi, edi
movsx ax, byte [ebp + edi - 8]
and eax, 0xff
push eax
push 0x801470
push esi
call fcn.007c7760
pop ecx
lea eax, [eax + ebx + 0x88]
push eax
call fcn.007e5e9e
add esp, 0xc
cmp edi, 5
jge 0x732023
push 0x80146c
push esi
call fcn.007c9c10
pop ecx
pop ecx
inc edi
cmp edi, 6
jl 0x731fe9
push esi
call fcn.007431b3
pop ecx
pop edi
xor eax, eax
pop ebx
jmp 0x732038
mov eax, esi
pop esi
leave
ret

Function at 0x73203b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
or esi, reloc.ws2_32.dll_WSASetLastError
call fcn.00743f09
cmp eax, 1
jne 0x7320c1
lea eax, [ebp - 8]
push 6
push eax
call fcn.00737501
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x7320c1
push ebx
mov ebx, dword [ebp + 8]
push edi
and byte [ebx + 0x88], al
lea esi, [ebx + 0x88]
xor edi, edi
movsx ax, byte [ebp + edi - 8]
and eax, 0xff
push eax
push 0x801470
push esi
call fcn.007c7760
pop ecx
lea eax, [eax + ebx + 0x88]
push eax
call fcn.007e5e9e
add esp, 0xc
cmp edi, 5
jge 0x7320ae
push 0x80146c
push esi
call fcn.007c9c10
pop ecx
pop ecx
inc edi
cmp edi, 6
jl 0x732074
push esi
call fcn.007431b3
pop ecx
pop edi
xor eax, eax
pop ebx
jmp 0x7320c3
mov eax, esi
pop esi
leave
ret
Function at 0x736a97
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x831b94], 0
mov dword [ebp - 0x1c], 0x8015b4
mov dword [ebp - 0x18], 0x736c57
mov dword [ebp - 0x14], 0x8015a8
mov dword [ebp - 0x10], 0x737182
mov dword [ebp - 0xc], 0x801598
mov dword [ebp - 8], fcn.00736c1e
je 0x736ae3
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + reloc.ws2_32.dll_WSASetLastError]
jmp 0x736c1a
push ebx
push esi
push edi
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0x104
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x736c02
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.007c9c00
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0x801574
push eax
call fcn.007c9c10
mov edi, dword [0x7ec124]
add esp, 0x10
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call edi
mov ebx, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x736b5b
push 0x8015b4
push esi
call ebx
test eax, eax
jne 0x736b57
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x736baa
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.007c9c00
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0x80156c
push eax
call fcn.007c9c10
add esp, 0x10
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call edi
mov esi, eax
test esi, esi
je 0x736c02
push 0x8015b4
push esi
call ebx
test eax, eax
jne 0x736ba6
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x736c02
and dword [ebp - 4], 0
cmp dword [0x7ec384], 0
jle 0x736be2
lea edi, [ebp - 0x18]
push dword [edi - 4]
push esi
call ebx
test eax, eax
mov dword [edi], eax
je 0x736bd9
inc dword [ebp - 4]
add edi, 8
mov eax, dword [ebp - 4]
cmp eax, dword [0x7ec384]
jl 0x736bba
jmp 0x736be2
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
xor esi, esi
test esi, esi
je 0x736c02
mov ecx, dword [0x7ec384]
xor eax, eax
test ecx, ecx
jle 0x736c02
mov edx, dword [ebp + eax*8 - 0x18]
mov dword [eax*8 + 0x801584], edx
inc eax
cmp eax, ecx
jl 0x736bf2
movzx eax, word [ebp + 8]
pop edi
pop esi
mov eax, dword [eax*8 + reloc.ws2_32.dll_WSASetLastError]
mov dword [0x831b94], 1
pop ebx
leave
ret 4
Function at 0x73709c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
push dword [ebp + 8]
and dword [edi], 0
and byte [eax], 0
call dword [sym.imp.ws2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x737115
cmp word [ebx + 8], 2
jne 0x7370f7
cmp word [ebx + 0xa], 4
jne 0x7370f7
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x7370f7
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00736f39
test eax, eax
mov dword [edi], eax
je 0x7370f2
lea edi, [eax + 0x1c]
add esi, 4
jmp 0x7370ce
push 8
pop eax
jmp 0x73713b
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call fcn.007ca140
and byte [esi + 0x400], 0
add esp, 0xc
xor eax, eax
jmp 0x73713b
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x73713b
dec ecx
je 0x737136
dec ecx
je 0x73712f
dec ecx
jmp 0x73713b
mov eax, 0x2afb
jmp 0x73713b
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18

Function at 0x73755d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 8]
mov edi, 0x20019
push eax
push edi
push 0
push 0x8015f0
push 0x80000002
call esi
test eax, eax
jne 0x7375d7
lea eax, [ebp - 4]
push eax
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call esi
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
test eax, eax
jne 0x7375d0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x410
push eax
lea eax, [ebp + 8]
push dword [ebp + 8]
push eax
push 0
push 0x8015e4
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x7375db
cmp dword [ebp + 8], 1
jne 0x7375db
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call esi
xor eax, eax
pop edi
pop esi
leave
ret
or eax, reloc.ws2_32.dll_WSASetLastError
jmp 0x7375d7

Function at 0x737600
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 4]
push edi
push eax
xor esi, esi
push 0x20019
push esi
push 0x8015f0
push 0x80000002
mov dword [ebp - 8], 0x10
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x737668
push esi
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp edi, esi
jne 0x737666
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.007375f0
pop ecx
pop ecx
jmp 0x737668
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x737723
Capabilities:
Check if file exists
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x850
mov eax, dword [ebp + 0x18]
push ebx
xor ebx, ebx
push esi
mov dword [eax], ebx
push edi
mov edi, dword [ebp + 8]
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0x424
push eax
push edi
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
call dword [sym.imp.kernel32.dll_QueryDosDeviceA]
mov esi, dword [sym.imp.kernelbase.dll_GetLastError_1]
test eax, eax
jne 0x7377a8
call esi
cmp eax, 2
jne 0x73779a
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0x801634
push eax
call fcn.007c9c00
lea eax, reloc.ws2_32.dll_WSASetLastError
push edi
push eax
call fcn.007c9c10
add esp, 0x10
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
push edi
push 1
call dword [sym.imp.kernel32.dll_DefineDosDeviceA]
test eax, eax
jne 0x737813
call esi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, ebx
jne 0x737840
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0x80162c
push eax
call fcn.007c9c00
lea eax, reloc.ws2_32.dll_WSASetLastError
push edi
push eax
call fcn.007c9c10
push 0xffffffffffffffff
push ebx
push 3
push ebx
push 1
lea eax, reloc.ws2_32.dll_WSASetLastError
push ebx
push eax
call fcn.0074913b
mov edi, eax
add esp, 0x2c
cmp edi, reloc.ws2_32.dll_WSASetLastError
je 0x737819
push ebx
lea eax, [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 4
push eax
push 0x170002
push edi
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
jne 0x73780a
call esi
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x73781e
mov byte [ebp - 1], 1
jmp 0x73779d
call esi
mov dword [ebp - 8], eax
cmp byte [ebp - 1], bl
je 0x73783d
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
push dword [ebp + 8]
push 7
call dword [sym.imp.kernel32.dll_DefineDosDeviceA]
test eax, eax
jne 0x73783d
call esi
jmp 0x737840
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x743905
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], reloc.ws2_32.dll_WSASetLastError
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x24], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
ret
Function at 0x743a17
Capabilities:
Encode data using xor
Encrypt data using hc-128

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax]
mov esi, dword [eax + 0x10]
mov dword [ebp + 8], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x24], ecx
lea ecx, [eax + 0x30]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x20], 0x30
mov edx, dword [ecx + 0x34]
mov ecx, dword [ecx]
mov dword [ebp - 0x18], ecx
mov edi, edx
mov ecx, edx
mov ebx, edx
shr edi, 0x11
shl ecx, 0xf
or edi, ecx
mov ecx, edx
shr ecx, 0x13
shl ebx, 0xd
or ecx, ebx
xor edi, ecx
mov ecx, dword [ebp - 0x18]
shr edx, 0xa
xor edi, edx
mov edx, ecx
mov ebx, ecx
shr edx, 0x12
shl ebx, 0xe
or edx, ebx
mov ebx, ecx
shl ebx, 0x19
shr ecx, 7
or ebx, ecx
mov ecx, dword [ebp - 0x18]
xor edx, ebx
shr ecx, 3
xor edx, ecx
mov ecx, dword [ebp - 8]
add edi, edx
add edi, dword [ecx + 0x20]
add ecx, 4
mov dword [ebp - 8], ecx
add edi, dword [ecx - 8]
dec dword [ebp - 0x20]
mov dword [ecx + 0x38], edi
jne 0x743a5c
mov edi, dword [ebp + 8]
lea ecx, [eax + 0x2c]
mov dword [ebp - 8], 0x8021c8
mov dword [ebp - 0x18], ecx
mov ecx, esi
mov edx, esi
shl ecx, 0x15
shr edx, 0xb
or ecx, edx
mov edx, esi
mov ebx, esi
shl edx, 0x1a
shr ebx, 6
or edx, ebx
mov ebx, esi
xor ecx, edx
mov edx, esi
shr edx, 0x19
shl ebx, 7
or edx, ebx
mov ebx, dword [ebp - 0x10]
xor ecx, edx
mov edx, esi
not edx
and edx, dword [ebp - 0x14]
and ebx, esi
or edx, ebx
mov ebx, edi
add ecx, edx
mov edx, dword [ebp - 0x18]
shr ebx, 0xd
add ecx, dword [edx]
mov edx, dword [ebp - 8]
add dword [ebp - 8], 4
add dword [ebp - 0x18], 4
add ecx, dword [edx]
mov edx, edi
shl edx, 0x13
or edx, ebx
mov ebx, edi
shr ebx, 0x16
shl edi, 0xa
or ebx, edi
mov edi, dword [ebp + 8]
xor edx, ebx
mov ebx, dword [ebp + 8]
shl edi, 0x1e
shr ebx, 2
or edi, ebx
mov ebx, dword [ebp - 4]
and ebx, dword [ebp + 8]
xor edx, edi
mov edi, dword [ebp - 4]
add ecx, dword [ebp - 0x24]
or edi, dword [ebp + 8]
and edi, dword [ebp - 0xc]
or edi, ebx
mov ebx, dword [ebp - 0x14]
add edx, edi
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 4]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], edi
add esi, ecx
cmp dword [ebp - 8], 0x8022c8
lea edi, [edx + ecx]
mov dword [ebp - 0x24], ebx
mov dword [ebp + 8], edi
jl 0x743acf
mov ecx, dword [ebp - 4]
add dword [eax], edi
add dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
add dword [eax + 8], ecx
mov ecx, dword [ebp - 0x1c]
add dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x10]
add dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x14]
add dword [eax + 0x10], esi
add dword [eax + 0x18], ecx
add dword [eax + 0x1c], ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x743f64
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
and byte [ebp - 1], bl
cmp dword [ebp + 8], esi
push edi
je 0x744008
cmp dword [ebp + 0xc], esi
jl 0x744008
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x744008
mov eax, dword [ebp + 0x14]
cmp eax, 1
jle 0x744008
cmp dword [ebp + 0xc], esi
jle 0x744000
dec eax
mov dword [ebp + 0x10], eax
cmp esi, dword [ebp + 0x10]
jge 0x744000
mov eax, esi
push 4
cdq
pop ecx
idiv ecx
cmp edx, 3
je 0x743fca
mov eax, dword [ebp + 8]
mov dl, byte [ebp - 1]
shl dl, 2
mov cl, byte [ebx + eax]
mov al, cl
and cl, 3
add cl, dl
shr al, 2
mov byte [ebp - 1], cl
inc ebx
jmp 0x743fd1
mov al, byte [ebp - 1]
and byte [ebp - 1], 0
cmp al, 0xa
jae 0x743fdc
add al, 0x30
mov byte [esi + edi], al
jmp 0x743ffa
cmp al, 0x24
jae 0x743fe4
add al, 0x37
jmp 0x743fd7
cmp al, 0x3e
jae 0x743fec
add al, 0x3d
jmp 0x743fd7
cmp al, 0x3f
jae 0x743ff6
mov byte [esi + edi], 0x2d
jmp 0x743ffa
mov byte [esi + edi], 0x5f
inc esi
cmp ebx, dword [ebp + 0xc]
jl 0x743f9c
and byte [esi + edi], 0
xor eax, eax
jmp 0x74400b
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x7440cf
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
or ebx, reloc.ws2_32.dll_WSASetLastError
cmp dword [ebp + 0xc], 0
push esi
je 0x744187
mov esi, dword [ebp + 8]
test esi, esi
je 0x744187
push 0x105
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0
push eax
call fcn.007c3430
push dword [ebp + 0xc]
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0x802378
push 0x801f74
push 0x104
push eax
call fcn.007e5eb9
lea eax, [ebp - 0xc]
push eax
call fcn.00743f1d
add esp, 0x24
test eax, eax
jne 0x74414c
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
lea eax, [ebp - 0xc]
push 0
push eax
call dword [sym.imp.kernel32.dll_CreateMutexA]
test eax, eax
mov dword [esi], eax
jne 0x744150
push 3
jmp 0x744189
push dword [ebp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x744181
cmp eax, 0x80
je 0x74417c
cmp eax, 0x102
jne 0x744183
push 2
pop ebx
push dword [esi]
call dword [sym.imp.kernel32.dll_CloseHandle]
and dword [esi], 0
jmp 0x744183
or ebx, reloc.ws2_32.dll_WSASetLastError
jmp 0x744183
xor ebx, ebx
mov eax, ebx
jmp 0x74418a
push 1
pop eax
pop esi
pop ebx
leave
ret
Function at 0x74418e
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
push 1
pop eax
cmp ecx, eax
jl 0x7442a0
cmp ecx, 7
jg 0x7442a0
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jl 0x7442a0
mov esi, ecx
shl esi, 3
mov ecx, dword [esi + reloc.ws2_32.dll_WSASetLastError]
cmp ecx, ebx
jne 0x7441dc
cmp dword [ebp + 0xc], ebx
je 0x7442a0
cmp ecx, ebx
je 0x7441e5
cmp dword [ebp + 0xc], ebx
jne 0x7442a0
push 0x105
lea eax, reloc.ws2_32.dll_WSASetLastError
push ebx
push eax
call fcn.007c3430
add esp, 0xc
cmp dword [esi + reloc.ws2_32.dll_WSASetLastError], ebx
push 0x802370
je 0x744215
call fcn.00743f04
push eax
push dword [esi + 0x8022c8]
jmp 0x74421e
call fcn.00743f04
push eax
push dword [ebp + 0xc]
push 0x802380
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0x104
push eax
call fcn.007e5eb9
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
call fcn.00743f1d
test eax, eax
pop ecx
jne 0x74425d
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov edi, eax
cmp edi, ebx
jne 0x744262
push 3
pop eax
jmp 0x7442a0
push dword [ebp + 0x10]
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x744294
cmp eax, 0x80
je 0x74428e
cmp eax, 0x102
jne 0x74429d
push edi
mov dword [ebp - 4], 2
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x74429d
or dword [ebp - 4], reloc.ws2_32.dll_WSASetLastError
jmp 0x74429d
mov dword [ebp - 4], ebx
mov dword [esi + 0x8022cc], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x744a3c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, 0x100
push esi
lea eax, reloc.ws2_32.dll_WSASetLastError
push 0
push eax
call fcn.007c3430
add esp, 0xc
lea eax, reloc.ws2_32.dll_WSASetLastError
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
lea eax, reloc.ws2_32.dll_WSASetLastError
test eax, eax
je 0x744ad2
cmp byte [ebp - 0x100], 0
je 0x744ad2
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
call fcn.007c7760
inc eax
push eax
call fcn.0074274a
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x744ad2
call fcn.007570f1
cmp eax, 1
lea eax, reloc.ws2_32.dll_WSASetLastError
push eax
jne 0x744ac6
call fcn.007c7760
inc eax
push eax
lea eax, reloc.ws2_32.dll_WSASetLastError
push esi
push eax
call fcn.007449ec
add esp, 0x10
jmp 0x744ace
push esi
call fcn.007c9c00
pop ecx
pop ecx
mov eax, esi
jmp 0x744ad4
xor eax, eax
pop esi
leave
ret