joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b2c
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x403b5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403b5b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x403b66
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x403b64
mov dword [eax], esi
mov al, 1
pop esi
pop ebp
ret

Function at 0x404829
Capabilities:
Create process on windows

Disassembly:
push 0x60
mov eax, 0x4696bc
call fcn.00440d89
push 0x10
xor ebx, ebx
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.00444100
push 0x44
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00444100
mov edi, dword [ebp + 0x14]
add esp, 0x18
test edi, edi
je 0x40485b
mov dword [edi], ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00417f0d
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00417f0d
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
test esi, esi
mov byte [ebp - 4], 1
mov eax, 0x46f5a3
cmovne eax, esi
push eax
call fcn.00417f0d
xor eax, eax
mov dword [ebp - 0x6c], 0x44
lea ecx, [ebp - 0x28]
test esi, esi
push ecx
cmovne eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x6c]
push ecx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4048d8
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4048cc
mov eax, dword [ebp - 0x28]
mov dword [edi], eax
jmp 0x4048d1
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x24]
call esi
mov bl, 1
lea ecx, [ebp - 0x10]
call fcn.00417f70
lea ecx, [ebp - 0x14]
call fcn.00417f70
lea ecx, [ebp - 0x18]
call fcn.00417f70
mov al, bl
call fcn.00440d57
ret
Function at 0x4059d7
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.00440e70
mov eax, dword [0x4e51d4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
push 0x10
sbb al, al
and byte [ebp - 0x1004], al
lea eax, [ebp - 0x1044]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.00404473
dec eax
push eax
lea eax, [ebp - 0x1040]
push eax
call fcn.00403b69
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
call fcn.00440d49
leave
ret 0x10

Function at 0x405a7c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
xor esi, esi
xor al, 1
push esi
push esi
push 1
push esi
mov byte [0x4eb2e8], al
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4eb2f0], eax
lea eax, [ebp + 8]
push eax
push esi
push esi
push 0x406313
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ebp
ret
Function at 0x417037
Capabilities:
Read file via mapping

Disassembly:
push 0x34
mov eax, 0x46b2be
call fcn.00440dbc
mov esi, ecx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x417050
xor al, al
jmp 0x4170c7
push str.SpotifyWindowHandle
lea ecx, [ebp - 0x40]
call fcn.004024de
push esi
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
call fcn.00416f31
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.00405209
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
je 0x4170bd
push 4
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
je 0x4170b6
mov eax, dword [ecx]
push ecx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.00405209
mov al, bl
call fcn.00440d6b
ret 4

Function at 0x417384
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4e51d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov eax, dword [eax]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], edi
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
push 0x100000
push edi
mov dword [ebp - 0x1c], eax
call fcn.004179a6
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x417419
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
push 1
push ebx
push ebx
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x4173ff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417419
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x41746b
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 4]
add eax, 4
mov dword [ebp - 0x18], eax
cmp eax, ecx
jne 0x4173c5
push 1
push edi
call fcn.004179a6
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41745a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
neg ebx
push esi
sbb bl, bl
inc bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440d49
leave
ret
mov al, 1
jmp 0x41745c
Function at 0x417fb9
Capabilities:
Delete registry value

Disassembly:
push 0xc
mov eax, 0x46b3ee
call fcn.00440d89
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.00417f0d
push dword [ebp + 0x10]
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00417f0d
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push 2
push ebx
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x10], ebx
je 0x418017
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
neg eax
sbb al, al
lea ebx, [eax + 1]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call fcn.00440d44
push dword [ebp - 0x18]
call fcn.00440d44
pop ecx
pop ecx
mov al, bl
call fcn.00440d57
ret

Function at 0x41891c
Capabilities:
Create process on windows

Disassembly:
push 0x34
mov eax, 0x46b50a
call fcn.00440dbc
lea eax, [ebp - 0x28]
push eax
call fcn.00418881
lea eax, [ebp - 0x28]
xor esi, esi
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], esi
push eax
call fcn.00417b90
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x41894e
mov eax, dword [eax]
push 5
push esi
push esi
push eax
push 0x47029c
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x40]
call fcn.0040522f
lea ecx, [ebp - 0x28]
call fcn.00405209
call fcn.00440d6b
ret

Function at 0x4196f2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4e51d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x41972c
xor al, al
jmp 0x41973f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440d49
leave
ret
Function at 0x419811
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4e51d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0x104
push ecx
push 0xffffffffffffffff
push eax
xor edi, edi
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x419852
push 0xa
pop eax
jmp 0x4198cc
push esi
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x419889
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x20
neg eax
sbb eax, eax
add eax, 0xe
jmp 0x4198cb
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4198b4
cmp dword [ebp - 0x210], edi
jne 0x4198b4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4198cb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xc
pop eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00440d49
leave
ret
Function at 0x41e1d7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
push esi
xor esi, esi
and edx, 7
cmp eax, 5
jae 0x41e1f7
xor eax, eax
jmp 0x41e34e
add dword [ebp + 0x10], 5
or ecx, 0xffffffff
push ebx
push edi
mov edi, dword [ebp + 8]
lea ebx, [edi - 4]
add ebx, eax
mov dword [ebp - 0xc], ebx
add edi, esi
mov dword [ebp + 0xc], edi
cmp edi, ebx
jae 0x41e224
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41e221
inc edi
cmp edi, ebx
jb 0x41e214
mov dword [ebp + 0xc], edi
mov esi, edi
sub esi, dword [ebp + 8]
mov eax, esi
sub eax, ecx
cmp edi, ebx
jae 0x41e335
cmp eax, 3
jbe 0x41e25c
xor edx, edx
mov al, byte [edi + 4]
mov ecx, esi
mov dword [ebp - 8], ecx
test al, al
je 0x41e298
cmp al, 0xff
je 0x41e298
and edx, 3
xor eax, eax
add edx, edx
or edx, 1
inc eax
jmp 0x41e32e
lea ecx, [eax - 1]
shl edx, cl
and edx, 7
je 0x41e23c
cmp byte [edx + 0x4cd5dc], 0
je 0x41e285
movzx eax, byte [edx + 0x4cd5e4]
mov ecx, edi
sub ecx, eax
mov al, byte [ecx + 4]
test al, al
je 0x41e285
cmp al, 0xff
jne 0x41e23c
and edx, 3
mov ecx, esi
add edx, edx
or edx, 1
inc esi
mov edi, dword [ebp + 8]
jmp 0x41e20b
movzx ecx, al
movzx eax, byte [edi + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
mov edi, dword [ebp + 0x10]
shl ecx, 8
or ecx, eax
cmp dword [ebp + 0x18], 0
je 0x41e2c6
lea ebx, [ecx + esi]
add ebx, edi
jmp 0x41e2cc
mov ebx, ecx
sub ebx, esi
sub ebx, edi
test edx, edx
je 0x41e303
movzx eax, byte [edx + 0x4cd5e4]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 4], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x41e2ee
cmp al, 0xff
jne 0x41e303
xor eax, eax
push 0x20
pop ecx
sub ecx, dword [ebp - 4]
inc eax
shl eax, cl
mov ecx, eax
mov dword [ebp - 4], eax
dec ecx
xor ecx, ebx
jmp 0x41e2b9
mov edi, dword [ebp + 0xc]
mov eax, ebx
mov ecx, dword [ebp - 8]
shr eax, 0x18
and al, 1
neg al
mov byte [edi + 1], bl
mov byte [edi + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0xc]
shr eax, 8
push 5
mov byte [edi + 2], al
pop eax
add esi, eax
jmp 0x41e290
lea ecx, [eax - 1]
shl edx, cl
xor ecx, ecx
and edx, 7
cmp eax, 3
mov eax, dword [ebp + 0x14]
cmova edx, ecx
pop edi
pop ebx
mov dword [eax], edx
mov eax, esi
pop esi
leave
ret
Function at 0x4233f8
Capabilities:
Check if file exists

Disassembly:
push 0x28c
mov eax, 0x46c13e
call fcn.00440dbc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x294], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x298], ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.00402568
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x423479
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x423472
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x2f
je 0x423472
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x3a
jne 0x423479
mov eax, 0x4cd190
jmp 0x42347e
mov eax, 0x4cd944
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a616
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x294]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x4234d1
and dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4234c0
cmp eax, 0x12
jne 0x4234c2
xor eax, eax
push 0x4e50a0
push eax
mov ecx, esi
call fcn.00420f85
jmp 0x423546
mov ecx, dword [ebp - 0x298]
lea eax, [ebp - 0x264]
push eax
call fcn.004232f6
mov eax, dword [ebp - 0x290]
test eax, 0x400
je 0x4234f8
xor eax, eax
mov dword [edi], eax
mov dword [ebx], eax
jmp 0x42353e
and eax, 0x10
lea ecx, [ebp - 0x40]
or eax, 0x20
shr eax, 4
mov dword [edi], eax
mov dword [ebx], eax
lea eax, [ebp - 0x264]
push 0
push eax
call fcn.0040187d
push dword [ebp - 0x290]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00423ee6
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
mov dword [edi + 4], eax
call fcn.0040522f
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
lea ecx, [ebp - 0x28]
call fcn.0040522f
mov eax, esi
call fcn.00440d6b
ret
Function at 0x4247d9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x5c
mov eax, 0x46c35b
call fcn.00440dbc
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], eax
test eax, eax
je 0x42480e
mov edi, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x64]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x424818
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x424838
push dword [ebp - 0x60]
push edi
push ebx
call fcn.00424730
add esp, 0xc
jmp 0x424916
push esi
push edi
call fcn.00423ee6
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x64], ecx
test esi, 0x400
je 0x4248f3
push edi
call fcn.0042465f
pop ecx
test al, al
jne 0x42486e
mov eax, dword [ebp - 0x64]
mov dword [ebx], 9
mov dword [ebx + 4], eax
jmp 0x424916
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x424878
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040259e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
push ecx
push 0x2000000
push 3
push ecx
push 7
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x68], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040522f
cmp esi, 0xffffffff
je 0x424826
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x4248e0
push dword [ebp - 0x60]
push edi
push ebx
call fcn.00424730
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x424916
mov eax, dword [ebp - 0x5c]
push esi
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
and esi, 0x10
je 0x4248fd
mov edx, dword [ebp - 0x68]
jmp 0x424902
mov edx, ecx
mov ecx, dword [ebp - 0x68]
xor eax, eax
test esi, esi
setne al
add eax, 2
test esi, esi
mov dword [ebx], eax
cmove ecx, edx
mov dword [ebx + 4], ecx
mov eax, ebx
call fcn.00440d6b
ret
Function at 0x428565
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4e51d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x4eb710], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
jne 0x4285a2
lea eax, [ebp - 0x1c]
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov ax, word [ebp - 0x14]
mov word [0x4eb710], ax
movzx esi, word [0x4eb710]
xor eax, eax
and dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], eax
cmp byte [edi], 1
mov ebx, edi
jbe 0x42865a
inc ebx
cmp byte [ebx], 1
ja 0x4285bf
mov dword [ebp - 0x38], ebx
cmp ebx, edi
je 0x42865a
test eax, eax
jne 0x4285f0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x24], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
cmp word [0x4eb70c], si
je 0x428608
push esi
push eax
mov word [0x4eb70c], si
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, ebx
sub eax, edi
je 0x42865a
mov esi, dword [ebp - 0x24]
mov ebx, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov ecx, 0x2000
cmp eax, ecx
lea eax, [ebp - 0x34]
push 0
push eax
cmovg ebx, ecx
cmp dword [ebp - 0x2c], 0
push ebx
push edi
push esi
je 0x42863d
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebp - 0x30]
jmp 0x428646
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x28]
add edi, ebx
sub eax, ebx
mov ebx, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
jne 0x428619
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x38]
cmp byte [ebx], 0
je 0x4286ac
movzx eax, byte [ebx + 1]
sub eax, 1
js 0x4286ac
cmp eax, 0x20
jge 0x428680
and esi, 0xfff0
or si, word [eax*2 + 0x4cdc7c]
movzx esi, si
jmp 0x42869e
cmp eax, 0x40
jge 0x428695
and esi, 0xff0f
or si, word [eax*2 + 0x4cdc9c]
jmp 0x42867b
jne 0x4286a1
movzx esi, word [0x4eb710]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x24]
lea edi, [ebx + 2]
jmp 0x4285b4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440d49
leave
ret
Function at 0x42927a
Capabilities:
Get file size

Disassembly:
push 8
mov eax, 0x46ce94
call fcn.00440d89
mov esi, ecx
and dword [ebp - 4], 0
mov eax, SysReAllocString
push 2
pop ecx
cmp dword [ebp + 8], ecx
mov edi, 0xc0000000
cmovne edi, eax
setne bl
mov eax, dword [ebp + 0x20]
or eax, dword [ebp + 0x24]
je 0x4292ae
test bl, bl
je 0x4292b1
push 3
pop ecx
xor eax, eax
mov edx, 0x100
inc eax
test bl, bl
push 0
cmovne edx, eax
cmp byte [ebp + 0x60], 0
push edx
push ecx
push 0
push eax
push edi
je 0x4292e0
cmp dword [ebp + 0x5c], 8
lea eax, [ebp + 0x48]
cmovae eax, dword [ebp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4292f2
cmp dword [ebp + 0x44], 0x10
lea eax, [ebp + 0x30]
cmovae eax, dword [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
or edi, 0xffffffff
mov dword [esi + 0x70], ecx
cmp ecx, edi
je 0x4293d1
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
or eax, edx
je 0x429348
test bl, bl
jne 0x429348
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edx
push eax
push dword [ebp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jne 0x429331
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42933e
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x429348
push str.failed_setting_file_size
jmp 0x4293d6
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x4cdf74
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x429382
lea ecx, [ebp - 0x14]
push ecx
push dword [esi + 0x70]
call eax
test eax, eax
je 0x42937b
mov eax, dword [ebp - 0x10]
xor ecx, ecx
or ecx, dword [ebp - 0x14]
cdq
jmp 0x42939a
push str.failed_querying_file_size
jmp 0x4293d6
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
je 0x42937b
xor ecx, ecx
or ecx, eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp + 0x18], edi
je 0x4293af
test eax, eax
jg 0x4293aa
jl 0x4293af
cmp ecx, dword [ebp + 0x18]
jb 0x4293af
mov ecx, dword [ebp + 0x18]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [esi + 0x68], ecx
lea ecx, [ebp + 0x48]
and dword [esi + 0x6c], 0
call fcn.0040522f
lea ecx, [ebp + 0x30]
call fcn.00405209
call fcn.00440d57
ret 0x60
push str.failed_opening_file
mov ecx, esi
call fcn.00428f33
int3

Function at 0x4298cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004298a8
pop esi
leave
ret 8
Function at 0x44210a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x442149
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x442149
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x442149
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x442149
cmp dword [ecx + 0x74], 0xe
jbe 0x442149
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x44e3e6
Capabilities:
Encode data using xor

Disassembly:
cmp ebp, dword [esi]
std
push edi
salc
mov edx, eax
xor ebx, ecx
and esi, 0x2f04e96
mov ebx, eax
or esi, 0x229eeed4
and esi, edi
xor esi, esp
sub esi, edx
not edx
rol ebx, 0x14
test ecx, 0x2534db78
jo 0x44e45e
and esi, edi
sub edi, eax
inc esi
dec eax
test edx, edx
jo 0x44e43f
shr eax, 0x12
mov esi, 0xbea5244
xor esi, eax
add eax, eax
xor ebx, eax
test esi, edi
jb 0x44e436
invalid

Function at 0x44f36e
Capabilities:
Encode data using xor

Disassembly:
dec ebx
xor edi, esp
dec eax
xchg ecx, edx
add esi, eax
ror esi, 1
xor ecx, 0x4bd3c48
sub eax, 4
jne 0x44ef5a

Function at 0x459ab3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d2fc8
push 0x4d2fc0
push str.FlsAlloc
push 0x1f
call fcn.0045991e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x459ae7
push dword [ebp + 8]
mov ecx, esi
call dword [0x46f300]
call esi
jmp 0x459aed
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x459b31
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d2fd8
push 0x4d2fd0
push str.FlsGetValue
push 0x21
call fcn.0045991e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x459b68
push dword [ebp + 8]
mov ecx, esi
call dword [0x46f300]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x459b70
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d2fe0
push 0x4d2fd8
push str.FlsSetValue
push 0x22
call fcn.0045991e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x459baa
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x46f300]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]