joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44dd50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [esi]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x2c], eax
call eax
sub esp, 0xc
test eax, eax
je 0x525c88
mov dword [esp], eax
mov dword [ebp - 0x30], eax
call fcn.00513b80
mov edx, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov ebx, eax
mov dword [esp + 8], edx
mov eax, dword [esi]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
lea eax, [edi + 8]
sub esp, 0xc
mov dword [edi], eax
mov dword [esp], ebx
mov dword [ebp - 0x2c], eax
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x1c], eax
mov esi, eax
cmp eax, 0xf
ja 0x44de00
cmp eax, 1
jne 0x44ddf0
movzx edx, byte [ebx]
mov byte [edi + 8], dl
mov ecx, dword [ebp - 0x2c]
mov dword [edi + 4], eax
mov byte [ecx + eax], 0
mov dword [esp], ebx
call fcn.00513b50
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x44ddd3
jmp 0x44de23
lea eax, [ebp - 0x1c]
mov dword [esp + 4], 0
mov ecx, edi
mov dword [esp], eax
call fcn.004f4f10
mov dword [ebp - 0x2c], eax
sub esp, 8
mov dword [edi], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [edi]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], ecx
jmp 0x44ddd3
mov dword [esp], 0x24
call fcn.00513c50
mov dword [esp + 4], 0
mov dword [esp], esi
mov ecx, eax
mov ebx, eax
call fcn.00411940
push eax
push eax
mov dword [esp + 8], 0x40c1d0
mov dword [esp + 4], 0x546928
mov dword [esp], ebx
call fcn.005142c0
mov dword [esp], ebx
mov esi, eax
call fcn.00513f00
mov dword [esp], esi
call fcn.00461820
push eax
push eax
mov dword [esp + 8], 0x40c850
mov dword [esp + 4], 0x5468b4
mov dword [esp], ebx
call fcn.005142c0
mov esi, eax
jmp 0x525cfa
mov edx, dword [ebp - 0x30]
cmp edx, edi
je 0x525d13
mov eax, dword [ebp - 0x28]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.00513b70
mov dword [esp], esi
call fcn.00461820
nop
mov dword [esp], 0x24
lea ebx, [ebp - 0x134]
call fcn.00513c50
mov dword [esp], str.Cannot_get_OS_version_information
mov ecx, ebx
mov esi, eax
call fcn.00525c04
push eax
mov ecx, esi
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00412360
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 0x12c]
push ecx
push ecx
cmp edx, eax
je 0x525d78
mov eax, dword [ebp - 0x12c]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.00513b70
mov dword [esp + 8], 0x40c850
mov dword [esp + 4], 0x5468b4
mov dword [esp], esi
call fcn.005142c0
mov ebx, eax
mov dword [esp], esi
call fcn.00513f00
mov dword [esp], ebx
call fcn.00461820
mov edx, dword [ebp - 0x134]
mov ebx, eax
lea eax, [ebp - 0x12c]
cmp edx, eax
je 0x525d92
mov eax, dword [ebp - 0x12c]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.00513b70
jmp 0x525d92
Function at 0x44de40
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
sub esp, 0xc
test eax, eax
setne al
add esp, 0x1c
ret
Function at 0x45e100
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0046df10
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0046df10
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x45e160
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x5a94a8]
test esi, esi
jle 0x45e280
mov eax, dword [0x5a94ac]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x45e194
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x45e217
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x45e180
mov dword [esp], ebx
call fcn.0045eaf0
mov edi, eax
test eax, eax
je 0x45e2a7
mov eax, dword [0x5a94ac]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0045ec00
mov edx, dword [0x5a94ac]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x45e287
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x45e210
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x45e220
add dword [0x5a94a8], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x5a94ac]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x45e210
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0045e100
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x45e19e
mov eax, dword [0x5a94ac]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0045e100
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0045e100
lea esi, [esi]
nop
Function at 0x45e760
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x5a94c4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x5a94bc]
sub esp, 4
test ebx, ebx
je 0x45e7b5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x45e7ae
test esi, esi
je 0x45e7ae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x45e790
mov dword [esp], 0x5a94c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x46ff50
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x5371e0], eax
cmp eax, 0xffffffff
je 0x529f68
add esp, 0xc
ret

Function at 0x470530
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x470560
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call fcn.0046fe10
cmp eax, 1
je 0x470561
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
ret
lea ebx, [esp + 0x15]
xor eax, eax
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov ecx, 0x43
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x4705b5
jmp 0x4705c3
cmp eax, 0x6a
je 0x4705cd
add eax, 1
cmp byte [ebx + eax], 0
jne 0x4705b0
cmp eax, 0x6a
je 0x4705cd
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sub.msvcrt.dll_abort
lea esi, [esi]

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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x5a9f14], 1
je 0x4705f5
call fcn.004704a0
mov eax, dword [0x5371e0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x470620
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004703e0
mov esi, eax
mov eax, dword [entry3]
test eax, eax
je 0x47060c
test esi, esi
je 0x47060c
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x18], eax
sub esp, 0x10
lea eax, [esi + 0x38]
call fcn.00470530
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x64], 0
mov dword [esi + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, eax
call ebp
lea edx, [esi + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x529f6d
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x5371e0]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x529f6d
add esp, 0x2c
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x470870
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4708a0
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x470950
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x470980
cmp eax, 3
jne 0x47088a
mov eax, dword [0x5371e0]
cmp eax, 0xffffffff
je 0x47088a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x47088a
test byte [eax + 0x20], 0x30
je 0x4709b0
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4708e3
call fcn.00470770
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x470915
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x470907
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.0046fc50
lea eax, [ebx + 0x38]
call fcn.00470530
mov eax, ebx
call fcn.00470160
mov eax, dword [0x5371e0]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x47088a
mov eax, dword [0x5a9ef0]
test eax, eax
je 0x47088a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x5a9ef0], 0
sub esp, 4
jmp 0x47088a
mov dword [esp + 4], 0x46fe80
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x5a9ef0], eax
mov eax, 1
add esp, 0x10
pop ebx
pop esi
pop edi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x470a28
test eax, eax
je 0x4709ca
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x4709e7
call fcn.00470770
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
test byte [ebx + 0x24], 4
je 0x470a60
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x470a0c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], edi
call fcn.0046fc50
mov eax, esi
jmp 0x470923
test eax, eax
je 0x470a38
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call fcn.0046fc50
lea eax, [ebx + 0x38]
call fcn.00470530
jmp 0x47088a
mov dword [esp], edi
call fcn.0046fc50
mov eax, esi
call fcn.00470530
jmp 0x47088a
Function at 0x4713c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.004705e0
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x4713e2
call fcn.00470770
test byte [ebx + 0x20], 0x30
jne 0x4713fc
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x5371e0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x47143f
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x471483
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x471432
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x471448
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov dword [ebx + 0x14], 0
mov eax, ebx
call fcn.00470160
mov eax, dword [0x5371e0]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push eax
push eax
jmp 0x47143f
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x471497
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jmp 0x471462

Function at 0x4754a0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, ecx
sub esp, 0x30
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x4754be
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp], 0x24
lea ebx, [ebp - 0x20]
call fcn.00513c50
mov dword [esp], str.cannot_allocate_thread_context_key
mov ecx, ebx
mov esi, eax
call fcn.00521582
push edx
mov ecx, esi
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00412360
mov edx, dword [ebp - 0x20]
push eax
push eax
lea eax, [ebp - 0x18]
cmp edx, eax
je 0x47550e
mov eax, dword [ebp - 0x18]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.00513b70
mov dword [esp + 8], 0x40c850
mov dword [esp + 4], 0x5468b4
mov dword [esp], esi
call fcn.005142c0
mov ebx, eax
jmp 0x475546
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
cmp edx, eax
je 0x475546
mov eax, dword [ebp - 0x18]
mov dword [esp], edx
add eax, 1
mov dword [esp + 4], eax
call fcn.00513b70
mov dword [esp], esi
call fcn.00513f00
mov dword [esp], ebx
call fcn.00461820
mov ebx, eax
jmp 0x47552a
Function at 0x47c100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x5420cd
push ebx
sub esp, 0x9c
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x542131]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.0045ed70
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
mov dword [ebp - 0x8c], edx
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.00528b70
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x538d34], 0
jne 0x47c226
mov byte [0x538d34], 1
call fcn.00513dd0
test eax, eax
je 0x47c1f4
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.0045dd00
mov dword [esp], 2
mov esi, dword [fcn.0046df10]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x47c1e4
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x540f81
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x527cc4
jmp 0x527cbc
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x47c1aa
mov dword [esp], 2
call dword [0x5371b8]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x527cb7
mov dword [esp], 2
call dword [0x5371b8]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
mov ebx, ecx
sub esp, 0x18
mov dword [ecx], 0x54cb04
call fcn.0050c020
mov dword [esp], ebx
mov dword [esp + 4], 4
call fcn.00513b70
add esp, 0x18
pop ebx
ret
Function at 0x4cded0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x1c
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
jmp 0x4cdef3
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
jne 0x4cdf11
mov ecx, ebx
call fcn.004cdc70
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll__read
mov ebp, eax
cmp eax, 0xffffffff
je 0x4cdee8
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x10008ec6
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10008f28
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x10008f38
push 0xd
pop eax
jmp 0x10008f6e
push ebp
push esi
push edi
xor esi, esi
mov edi, edx
mov ecx, edi
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008f44
sub ecx, ebp
lea eax, [ecx + 1]
add edi, eax
add esi, eax
cmp eax, 1
jne 0x10008f3f
push esi
push edx
push 7
push 0
push dword [esp + 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x1000b60d
Capabilities:
Encode data using xor

Disassembly:
add eax, 0x38493948
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x38ff3
add eax, dword [eax]
push 0
mov eax, 0xd994dd7f
sub eax, 0xc9940c77
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0xac1aa0fb
add ecx, 0x53e5ad7b
mov edi, eax
mov esi, 0xb2e1bf48
sub esi, 0xa2dfab48
add esi, dword [ebp - 0x30]
mov ebx, 0x4acccb0b
add ebx, 0x41685dfd
xor dword [ebp - 0xc], 0xdb715a7f
mov edx, dword [esi]
xor dword [ebp - 8], ecx
add edx, ebx
add dword [ebp - 0x1c], 0x8b36d57e
mov dword [edi], edx
add dword [ebp - 0x1c], 0x2e1cc6bd
add edi, 4
add esi, 0xa1ef3364
add esi, 0x5e10cca0
invalid
Function at 0x4a1340
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4abf1b
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4c76b8]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c76b8]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x2ac]
mov eax, dword [esp + 0x2a8]
mov edx, dword [esp + 0x2b0]
mov ebp, dword [esp + 0x2a0]
mov ebx, dword [esp + 0x2a4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2b4]
xor esi, esi
push 0xffffffffffffffff
push esi
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], esi
mov word [esp + 0x30], si
call fcn.00409a40
mov eax, dword [esp + 0x34]
cmp eax, esi
mov dword [esp + 0x298], esi
je 0x4a1407
lea edi, [eax - 1]
cmp edi, eax
jbe 0x4a13ec
call fcn.00471ec7
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x4a13fb
lea eax, [esp + 0x24]
cmp word [eax + edi*2], 0x5c
mov edx, 0x4b5e08
je 0x4a140c
mov edx, 0x4b5e00
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4a1411
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00409c40
mov eax, dword [esp + 0x24]
mov edi, 8
cmp dword [esp + 0x38], edi
jae 0x4a143e
lea eax, [esp + 0x24]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x4a1481
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], esi
call edi
cmp eax, 2
je 0x4a1464
call edi
mov esi, eax
call fcn.004a06c0
cmp dword [esp + 0x38], 8
mov dword [ebp], esi
mov dword [ebp + 4], eax
jb 0x4a1503
mov eax, dword [esp + 0x24]
push eax
jmp 0x4a14fb
lea eax, [esp + 0x68]
lea edx, [eax + 2]
jmp 0x4a1490
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4a1490
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00409b30
test byte [esp + 0x3c], 0x10
je 0x4a14cb
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx], 3
mov dword [eax], 3
jmp 0x4a14df
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], 2
mov dword [edx], 2
cmp dword [esp + 0x38], edi
mov eax, dword [0x4cb0c0]
mov dword [ebp], eax
mov ecx, dword [0x4cb0c4]
mov dword [ebp + 4], ecx
jb 0x4a1503
mov edx, dword [esp + 0x24]
push edx
call fcn.00471a59
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.00471a20
add esp, 0x288
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x43b636
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
sub edx, edx
and edx, edx
call fcn.0043b67f
add esi, 1
mov edx, esi
xor dword [eax], ecx
sub edx, 0xb2cb00ef
sub esi, 0x52e1bdcd
add eax, 1
mov esi, 0xb937fd09
sub esi, 0x5b26bb87
or esi, edx
cmp eax, ebx
jne fcn.0043b636
add edx, edx
sub edx, edx
ret