joyce8/EMBER2024-capa huggingface dataset:
Function at 0x619868
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, ecx
mov dword [esp], edx
mov esi, eax
movzx edx, byte [esi]
mov byte [esp + 4], dl
shl edx, 7
and dl, 0xff
movzx eax, byte [esi + 1]
movzx ecx, al
shr ecx, 1
or dl, cl
mov byte [esp + 5], dl
shl eax, 6
and al, 0xff
movzx edx, byte [esi + 2]
movzx ecx, dl
shr ecx, 2
or al, cl
mov byte [esp + 6], al
shl edx, 5
and dl, 0xff
movzx eax, byte [esi + 3]
movzx ecx, al
shr ecx, 3
or dl, cl
mov byte [esp + 7], dl
shl eax, 4
and al, 0xff
movzx edx, byte [esi + 4]
movzx ecx, dl
shr ecx, 4
or al, cl
mov byte [esp + 8], al
shl edx, 3
and dl, 0xff
movzx eax, byte [esi + 5]
shr eax, 5
or dl, al
mov byte [esp + 9], dl
movzx eax, byte [esi + 5]
shl eax, 2
and al, 0xff
movzx edx, byte [esi + 6]
shr edx, 6
or al, dl
mov byte [esp + 0xa], al
movzx eax, byte [esi + 6]
add eax, eax
and al, 0xff
mov byte [esp + 0xb], al
mov ebp, 8
lea eax, [esp + 4]
mov edx, 1
xor esi, esi
mov ecx, edx
movzx ebx, byte [eax]
shl ebx, cl
mov ecx, ebx
xor esi, ecx
and esi, 1
inc edx
cmp edx, 8
jne 0x619915
movzx edx, byte [eax]
and dl, 0xfe
mov ecx, esi
or dl, cl
mov byte [eax], dl
inc eax
dec ebp
jne 0x619910
mov eax, edi
xor ecx, ecx
mov edx, 8
call fcn.0040af98
push 1
mov eax, edi
call fcn.0040aab4
mov edx, eax
lea ecx, [esp + 8]
mov eax, dword [esp + 4]
call fcn.00618bd8
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x65d2d0
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
shl eax, 2
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, 4
mov ecx, esi
xor eax, eax
call fcn.0040b80c
cmp byte [ebp - 1], 0
jne 0x65d32f
mov eax, esi
call fcn.0040aab4
movzx edx, byte [ebp - 0xc]
dec edx
and dl, 0x3f
add dl, 0x21
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
add eax, 2
mov ecx, 3
cdq
idiv ecx
lea eax, [eax + eax*2]
mov dword [ebp - 0xc], eax
mov edi, 2
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x65d349
sub al, 2
jb 0x65d350
jmp 0x65d355
mov ebx, 2
jmp 0x65d355
mov ebx, 1
mov eax, esi
call fcn.0040aab4
mov byte [eax + ebx - 1], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x65d43c
test edi, edi
jle 0x65d3b1
mov eax, esi
call fcn.0040aab4
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shl eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and eax, edx
mov ecx, edi
shr eax, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
sub edi, 6
inc ebx
mov eax, esi
call fcn.0040aab4
mov byte [eax + ebx - 1], 0
jmp 0x65d430
test edi, edi
jge 0x65d3fa
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.0040aab4
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shr eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and eax, edx
mov ecx, edi
shl eax, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
mov eax, 8
sub eax, edi
mov edi, eax
inc dword [ebp - 0x10]
jmp 0x65d430
mov eax, esi
call fcn.0040aab4
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and dl, 0x3f
mov ecx, dword [esi]
movzx ecx, byte [ecx + ebx - 1]
or dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
inc dword [ebp - 0x10]
mov eax, esi
call fcn.0040aab4
mov byte [eax + ebx - 1], 0
mov edi, 2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x65d36d
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x65d44d
sub al, 2
jb 0x65d487
jmp 0x65d4cf
cmp edi, 2
jne 0x65d453
dec ebx
mov eax, ebx
sub eax, 2
jl 0x65d4cf
inc eax
mov dword [ebp - 0x14], eax
mov edi, 2
mov eax, esi
call fcn.0040aab4
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x709d04]
movzx edx, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x65d463
jmp 0x65d4cf
cmp edi, 2
jne 0x65d48d
dec ebx
test ebx, ebx
jle 0x65d4ca
mov dword [ebp - 0x14], ebx
mov edi, 1
mov eax, esi
call fcn.0040aab4
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x709d08]
movzx edx, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x65d499
jmp 0x65d4ca
inc ebx
mov eax, esi
call fcn.0040aab4
mov byte [eax + ebx - 1], 0x3d
test bl, 3
jne 0x65d4bd
mov eax, esi
xor ecx, ecx
mov edx, ebx
call fcn.0040af98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x65d9dc
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
push ecx
mov ebx, 0x709d20
test edx, edx
jne 0x65d9ef
xor eax, eax
jmp 0x65db04
mov dword [esp], 1
cmp byte [esp], 0
je 0x65da0c
push ecx
push edx
push eax
call fcn.0065db08
add esp, 0xc
jmp 0x65db04
push ecx
push edx
push eax
call fcn.0065de0c
add esp, 0xc
jmp 0x65db04
pop edx
pop esi
pop ebx
ret
Function at 0x6d20e0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x6d2246
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 8]
test esi, esi
je 0x6d2122
or ebx, 0xffff
mov eax, esi
call fcn.0040b1d4
mov esi, eax
jmp 0x6d2124
xor esi, esi
xor eax, eax
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.winhttp.dll_WinHttpQueryHeaders
call sub.kernel32.dll_GetLastError
cmp eax, 0x2f76
jne 0x6d2154
mov eax, edi
call fcn.0040a4ec
jmp 0x6d2229
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x6d21a4
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x20]
mov edx, dword [0x716244]
call fcn.0042bea4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [0x70daf0]
mov dl, 1
mov eax, dword [0x6d6614]
call fcn.0042da38
call fcn.00409ba8
mov edx, dword [ebp - 0xc]
shr edx, 1
dec edx
mov eax, edi
call fcn.0040b360
mov eax, dword [edi]
test eax, eax
je 0x6d21bc
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x6d2229
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [edi]
call fcn.0040b1d4
push eax
push esi
push ebx
mov eax, dword [ebp - 4]
push eax
call sub.winhttp.dll_WinHttpQueryHeaders
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x6d2229
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x24]
mov edx, dword [0x716244]
call fcn.0042bea4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [0x70daf0]
mov dl, 1
mov eax, dword [0x6d6614]
call fcn.0042da38
call fcn.00409ba8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6d224d
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0040a54c
pop eax
jmp eax

Function at 0x6d240c
Capabilities:
Initialize winhttp library

Disassembly:
push ebx
push esi
push edi
test dl, dl
je 0x6d241b
add esp, 0xfffffff0
call fcn.00408cf4
mov ebx, edx
mov edi, eax
mov eax, edi
call fcn.006dd00c
mov dl, 1
mov eax, dword [0x6d07f0]
call fcn.006d55f4
mov dword [edi + 0xb8], eax
mov dl, 1
mov eax, dword [0x6bb740]
call fcn.006ca3e4
mov dword [edi + 0xb4], eax
mov eax, dword [0x6cf8c0]
call fcn.006d5170
push 0
push 0
push 0
push 1
push 0x6d24bc
call sub.winhttp.dll_WinHttpOpen
mov esi, eax
mov dword [edi + 0xb0], esi
test esi, esi
jne 0x6d2489
mov ecx, dword [0x70dd3c]
mov dl, 1
mov eax, dword [0x6d66cc]
call fcn.0042d964
call fcn.00409ba8
push 0
push 0x10010
push 0x6d2268
mov eax, dword [edi + 0xb0]
push eax
call sub.winhttp.dll_WinHttpSetStatusCallback
mov eax, edi
test bl, bl
je 0x6d24b6
call fcn.00408d4c
pop dword fs:[0]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x6d3994
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6d3b70
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0xb9], 0
mov byte [ebx + 0xb8], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jle 0x6d39de
mov esi, dword [ebp - 4]
movzx esi, word [esi + 0x10]
jmp 0x6d39e0
xor esi, esi
push 0
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0040b1d4
push eax
mov eax, dword [ebx + 0x58]
mov eax, dword [eax + 0xb0]
push eax
call sub.winhttp.dll_WinHttpConnect
mov edi, eax
mov dword [ebx + 0xa0], edi
test edi, edi
jne 0x6d3a34
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x70d6c0]
mov dl, 1
mov eax, dword [0x6d6794]
call fcn.0042da38
call fcn.00409ba8
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0x6d3b8c
call fcn.0040b570
jne 0x6d3a4d
or esi, 0x800000
push esi
push 0
push 0
push 0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.006d20a0
mov eax, dword [ebp - 0x10]
call fcn.0040b1d4
push eax
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.006c45a4
mov eax, dword [ebp - 0x14]
call fcn.0040b1d4
push eax
mov eax, dword [ebx + 0xa0]
push eax
call sub.winhttp.dll_WinHttpOpenRequest
mov edi, eax
mov dword [ebx + 0xa4], edi
test edi, edi
jne 0x6d3ad9
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x28]
mov edx, dword [0x716244]
call fcn.0042bea4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x11
lea eax, [ebp - 0x24]
push eax
push 1
mov ecx, dword [0x70dca0]
mov dl, 1
mov eax, dword [0x6d6794]
call fcn.0042da38
call fcn.00409ba8
mov eax, dword [ebx + 0x14]
push eax
mov eax, ebx
call fcn.006c46f8
push eax
mov esi, dword [ebx + 0xc]
push esi
push esi
mov eax, dword [ebx + 0xa4]
push eax
call sub.winhttp.dll_WinHttpSetTimeouts
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x6d3b46
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
call sub.kernel32.dll_GetLastError
lea ecx, [ebp - 0x2c]
mov edx, dword [0x716244]
call fcn.0042bea4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x11
lea eax, [ebp - 0x24]
push eax
push 1
mov ecx, dword [0x70de84]
mov dl, 1
mov eax, dword [0x6d6794]
call fcn.0042da38
call fcn.00409ba8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6d3b77
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0040a54c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a54c
pop eax
jmp eax
Function at 0x401000
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
lea eax, [ecx + 1]
ret
Function at 0x403b60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd802
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.00425319
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
jne 0x403c2b
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0049e364
add esp, 8
mov byte [ebp - 4], 7
mov dword [ebp - 0x24], vtable.std::runtime_error.0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x24]
push 0x4f6d34
push eax
call fcn.0049e3e6
push eax
push esi
call fcn.00425ab6
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x405510
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cdb3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x40554f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [ebp - 4], 0xffffffff
lea esi, [edi + 8]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
mov ecx, esi
call fcn.00408de0
mov dword [ebp - 4], 0xffffffff
push dword [esi]
call fcn.0042400a
add esp, 4
test byte [ebp + 8], 1
pop esi
je 0x405598
push 0x28
push edi
call fcn.00424042
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x405c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cdd19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
mov dword [ebp - 4], 0
lea eax, [ebp - 0x254]
push 0x208
push 0
push eax
mov dword [ebp - 0x18], 0
call fcn.0049edb0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x405c99
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x104
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x4d410c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x254], ax
jne 0x405cbd
xor ecx, ecx
jmp 0x405cd5
lea ecx, [ebp - 0x254]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405cc6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x254]
mov ecx, esi
push eax
call fcn.004096c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x18], 1
call fcn.0040b010
add esp, 4
mov dword [ebp - 4], 1
cmp dword [ebp - 0x20], 0
jbe 0x405d9a
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
push edi
cmovae eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00409890
add esp, 8
mov edi, eax
mov byte [ebp - 4], 2
cmp esi, edi
je 0x405d6c
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x405d45
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00409d20
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x405d5d
mov eax, dword [esi]
jmp 0x405d5f
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00407620
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
pop edi
cmp eax, 8
jb 0x405d86
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.00409d20
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x405db3
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.00409cd0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40d520
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0x288
push 0x288
movlpd qword [ebp - 0x18], xmm0
call fcn.004a72b7
mov edi, eax
add esp, 4
test edi, edi
jne 0x40d571
xor eax, eax
xor edx, edx
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40d597
push edi
call fcn.004a315b
push dword [ebp - 0x10]
call fcn.004a72b7
mov edi, eax
add esp, 8
test edi, edi
je 0x40d55e
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x40d6e9
push 0x4d3608
lea ecx, [ebp - 0x30]
mov esi, edi
call fcn.004037e0
mov dword [ebp - 4], 0
cmp byte [esi + 0x1d8], 0
lea edx, [esi + 0x1d8]
jne 0x40d5d4
xor eax, eax
jmp 0x40d5e9
mov eax, edx
lea ebx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d5e0
sub eax, ebx
push eax
push edx
lea ecx, [ebp - 0x30]
call fcn.00409400
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
cmp byte [eax], 0x30
jne 0x40d611
mov esi, dword [esi]
test esi, esi
jne 0x40d5c1
mov ebx, dword [ebp - 0x18]
jmp 0x40d6b6
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push 0x4d4778
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040cf50
movzx eax, byte [esi + 0x195]
add esp, 0x24
cdq
mov ebx, eax
mov ecx, edx
movzx eax, byte [esi + 0x194]
cdq
shld ecx, ebx, 8
or ecx, edx
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x196]
cdq
shld edx, eax, 0x10
shl eax, 0x10
or ecx, edx
or ebx, eax
movzx eax, byte [esi + 0x197]
cdq
shld edx, eax, 0x18
shl eax, 0x18
or ecx, edx
or ebx, eax
movzx eax, byte [esi + 0x198]
cdq
or ecx, eax
movzx eax, byte [esi + 0x199]
cdq
shl eax, 8
or ecx, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x40d6d5
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.00409cd0
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
jmp 0x40d6ef
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
push edi
call fcn.004a315b
mov ecx, dword [ebp - 0xc]
add esp, 4
mov edx, esi
mov dword fs:[0], ecx
mov eax, ebx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x411af0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.std::_Facet_base.0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [esi], vtable.std::locale::facet.0
mov dword [esi + 4], eax
mov dword [ebp - 4], 1
mov dword [esi], vtable.std::codecvt_base.0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x70]
push 0x4d4b24
mov dword [esi], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
call fcn.00403b60
mov byte [ebp - 4], 3
lea eax, [ebp - 0x3c]
push eax
call fcn.0042560a
add esp, 4
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00404920
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4145c0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push 0x200
lea eax, [ebp - 0x414]
mov dword [ebp - 8], ecx
push 0
push eax
call fcn.0049edb0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x104
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.0049edb0
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0049edb0
add esp, 0x18
lea eax, [ebp - 0x214]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.004b260c
push 0x4d5538
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.004b260c
push str.PatchUI.json
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.004b260c
lea eax, [ebp - 0x110]
push 0x4d554c
push eax
call fcn.004a782a
add esp, 0x2c
test eax, eax
jne 0x4146f4
lea eax, [ebp - 0x110]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x4d5538
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.004b260c
push str.PatchUI.json
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.004b260c
lea eax, [ebp - 0x110]
push 0x4d554c
push eax
call fcn.004a782a
add esp, 0x20
test eax, eax
je 0x414798
push eax
call fcn.004b1ad9
add esp, 4
lea eax, [ebp - 0x110]
push ebx
push esi
push edi
push 0x4d554c
push eax
call fcn.004a782a
push 2
mov edi, eax
push 0
push edi
mov dword [ebp - 0xc], edi
call fcn.004b208f
push edi
call fcn.004b2601
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.00424518
mov ebx, eax
push 0
push 0
push edi
mov dword [ebp - 4], ebx
mov byte [ebx + esi], 0
call fcn.004b208f
push edi
push esi
push 1
push ebx
call fcn.004b1d25
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.00424518
push esi
mov ebx, eax
push 0
push ebx
call fcn.0049edb0
mov esi, dword [ebp - 4]
add esp, 0x48
push edi
push esi
push ebx
call fcn.004b2680
mov ecx, dword [ebp - 8]
add esp, 0xc
push ebx
call fcn.00419390
push dword [ebp - 0xc]
call fcn.004b1ad9
push esi
call fcn.00424050
push ebx
call fcn.00424050
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret