joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4483f0
Capabilities:
Get common file path
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.user32.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, eax
test esi, esi
je 0x448429
push str.SetThreadDpiAwarenessContext
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x448426
push 0xfffffffffffffffd
call eax
push esi
call edi
push str.User32.dll
call ebx
mov esi, eax
test esi, esi
je 0x44844b
push str.SetProcessDPIAware
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x448448
call eax
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
push 0
push str.SystemRoot
call ebx
mov edi, eax
mov eax, 0x104
cmp edi, eax
cmova eax, edi
add eax, eax
call fcn.005b0700
mov esi, esp
test edi, edi
je 0x448499
push edi
push esi
push str.SystemRoot
call ebx
test eax, eax
je 0x448499
lea eax, [ebp - 0x24]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x448499
test byte [ebp - 0x24], 0x10
jne 0x4484b5
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4484b5
push esi
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0
push 4
push 0
push 1
call fcn.005b2db5
add esp, 4
push eax
call fcn.005b2f64
add esp, 0x10
push 0
push 4
push 0
push 2
call fcn.005b2db5
add esp, 4
push eax
call fcn.005b2f64
call fcn.005b2a4b
mov esi, dword [eax]
call fcn.005b2a45
push esi
push dword [eax]
call fcn.00453390
push dword [ebp + 0xc]
mov dword [0x696348], 0x453750
push dword [ebp + 8]
call fcn.004536d0
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 1
push eax
push str.quiet
call fcn.00453220
test eax, eax
mov dword [ebp + 0xc], 1
push 0
lea eax, [ebp + 0xc]
setne byte [0x69632d]
push eax
push str.noeh
call fcn.00453220
test eax, eax
mov dword [ebp + 8], 1
push 0
lea eax, [ebp + 8]
setne byte [ebp + 0xf]
push eax
push str.debug
call fcn.00453220
xor ebx, ebx
add esp, 0x44
test eax, eax
setne bl
test eax, eax
je 0x44859b
call fcn.0044fef0
push 0x448010
push 0x16
call fcn.005b33c7
add esp, 8
push ebx
push dword [ebp + 0x14]
call fcn.00448050
add esp, 8
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.0044fef0
push 0x448010
push 0x16
call fcn.005b33c7
add esp, 8
cmp byte [ebp + 0xf], 0
jne 0x448583
push str.main
call fcn.0044f780
push ebx
push dword [ebp + 0x14]
call fcn.00448050
add esp, 0xc
mov esi, eax
call fcn.00443370
mov eax, esi
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x44c340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [ebp + 8]
mov edi, eax
cmp byte [esi + 0xb], 0
jge 0x44c360
mov eax, dword [esi]
jmp 0x44c362
mov eax, esi
push 0xa
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x44c483
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x44c483
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
mov edi, ecx
mov edx, dword [esi]
sub edi, edx
cmp eax, edi
jbe 0x44c463
mov ebx, edx
sub ebx, ecx
add ebx, eax
mov eax, dword [esi + 8]
sub eax, ecx
cmp ebx, eax
jbe 0x44c44d
test edi, edi
je 0x44c3cb
lea eax, [edi + edi]
mov dword [ebp + 8], eax
jmp 0x44c3d2
mov dword [ebp + 8], 1
lea eax, [edi + ebx]
mov edi, dword [ebp + 8]
cmp edi, eax
cmovb edi, eax
mov dword [ebp + 8], edi
test edi, edi
je 0x44c400
push 0
push 0
push 0
push 0
push 0
push edi
call fcn.0049f9b0
mov ecx, dword [esi + 4]
add esp, 0x18
mov edx, dword [esi]
mov edi, eax
jmp 0x44c402
xor edi, edi
cmp edx, ecx
jne 0x44c40d
mov eax, edi
mov dword [ebp - 4], edi
jmp 0x44c423
sub ecx, edx
push ecx
push edx
push edi
mov dword [ebp - 4], ecx
call fcn.005d67e0
add esp, 0xc
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
push ebx
push 0
push eax
call fcn.005d6d60
add ebx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [esi]
test eax, eax
je 0x44c441
push eax
call fcn.0044d750
add esp, 4
mov eax, dword [ebp + 8]
add eax, edi
mov dword [esi], edi
mov dword [esi + 8], eax
jmp 0x44c468
push ebx
push 0
push ecx
call fcn.005d6d60
mov edi, dword [esi]
add esp, 0xc
add dword [esi + 4], ebx
mov ebx, dword [esi + 4]
jmp 0x44c46b
lea ebx, [edx + eax]
mov edi, edx
mov dword [esi + 4], ebx
sub ebx, edi
push ebx
push dword [ebp - 8]
push edi
call fcn.005d67e0
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0xb], 0
jge 0x44c48b
mov esi, dword [esi]
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esi
push eax
push str.Couldnt_load_resource__s
push 3
mov dword [ebp - 0x18], 5
call fcn.0044dbd0
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44ccc0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push 0
push 0xa00
call fcn.0044ba20
add esp, 8
mov bl, al
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x44ceaf
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
test eax, eax
jle 0x44ce7c
test ecx, ecx
jle 0x44ce7c
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
push edx
push ecx
push eax
call fcn.0044bab0
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
jne 0x44cd5b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push str.Couldnt_create__dx_d_bitmap_for_Windows_Toolbar_image
push 3
call fcn.0044c870
add esp, 0x10
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 8]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 2
push edi
push esi
call dword [sym.imp.USER32.dll_PrintWindow]
mov ecx, dword [ebp - 4]
movsd xmm1, qword [0x600fd0]
push 4
mov dword [ebp - 0x64], 2
movzx esi, byte [ecx + 1]
movzx eax, byte [ecx + 2]
movzx ecx, byte [ecx]
mov dword [ebp - 0x54], 2
movd xmm0, esi
cvtdq2pd xmm0, xmm0
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x34], 3
mulsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
cvtps2pd xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cdq
mov dword [ebp - 0x5c], eax
mov eax, esi
mov dword [ebp - 0x58], edx
cdq
mov dword [ebp - 0x4c], eax
mov eax, ecx
mulsd xmm2, qword [0x600fe8]
mov dword [ebp - 0x48], edx
mulsd xmm0, xmm1
cdq
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x64]
push eax
push str.Windows_Toolbar_color___d___d___d___gray__g
cvtpd2ps xmm0, xmm0
push 3
mov dword [ebp - 0x38], edx
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x600fe0]
addsd xmm2, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x600fd8]
addsd xmm2, xmm0
cvtpd2ps xmm0, xmm2
movss dword [ebp - 0x10], xmm0
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x2c], xmm0
call fcn.0044dbd0
add esp, 0x10
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
movss xmm0, dword [0x600fcc]
comiss xmm0, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
setae al
mov esp, ebp
pop ebp
ret
cdq
mov dword [ebp - 0x3c], eax
mov eax, ecx
mov dword [ebp - 0x38], edx
cdq
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x44]
push 2
push eax
push str.Unexpected_Windows_Toolbar_size___dx_d
push 3
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x34], 2
call fcn.0044dbd0
add esp, 0x10
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e290
Capabilities:
Accept command line arguments
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x560
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x44e2a9
call fcn.0044e060
cmp byte [ebp + 0xc], 0
je 0x44e3f6
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0x44
push 0x208
lea eax, [ebp - 0x360]
movlpd qword [ebp - 0x40], xmm0
push 0
push eax
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
movups xmmword [ebp - 0x54], xmm0
call fcn.005d6d60
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x601260
lea eax, [ebp - 0x360]
push 0x104
push eax
call fcn.0044e650
mov esi, 0x104
lea ebx, [ebp - 0x360]
sub esi, eax
add esp, 0x10
lea eax, [ebx + eax*2]
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
test ebx, ebx
je 0x44e392
nop dword [eax]
mov edi, dword [ebx]
test edi, edi
je 0x44e38f
test esi, esi
jle 0x44e38f
push 0x1fe
lea eax, [ebp - 0x560]
push 0
push eax
call fcn.005d6d60
push 0xff
lea eax, [ebp - 0x560]
push eax
push edi
call fcn.00451f70
mov edi, dword [ebp + 0xc]
push eax
push 0x600990
push esi
push edi
call fcn.0044e650
add esp, 0x28
sub esi, eax
lea edi, [edi + eax*2]
mov dword [ebp + 0xc], edi
add ebx, 4
jne 0x44e340
mov edi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x158]
push 0
push eax
call fcn.005d6d60
push 0x104
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x360]
push eax
call fcn.00452010
lea eax, [ebp - 0x158]
push eax
push str.CMD:__s
push 3
call fcn.0044de80
add esp, 0x24
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x360]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea eax, [ebp + 8]
push eax
push str.Exit_with_code__d_n
push 3
call fcn.0044deb0
call fcn.0044da50
push 1
call fcn.005b2db5
push eax
call fcn.005b7431
push 0
call fcn.005b2db5
push eax
call fcn.005b7431
push 2
call fcn.005b2db5
push eax
call fcn.005b7431
add esp, 0x24
call fcn.0044d820
push edi
call fcn.005b1cef
int3

Function at 0x44e690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x696d04], 0
je 0x44e6dc
push esi
mov esi, dword [ebp + 0xc]
xor edx, edx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi*4 + 0x696ce8]
test esi, esi
je 0x44e6d3
mov edi, dword [0x696d04]
push ebx
mov ebx, dword [ebp + 8]
nop dword [eax + eax]
mov cl, byte [edi + eax]
inc eax
xor byte [edx + ebx], cl
and eax, 0x7f
inc edx
cmp edx, esi
jb 0x44e6c0
mov edi, dword [ebp + 0x10]
pop ebx
mov dword [edi*4 + 0x696ce8], eax
pop edi
pop esi
pop ebp
ret
Function at 0x44ecc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6964cc]
sub esp, 0x100
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
test ebx, eax
je 0x44ee85
mov esi, dword [ebp + 8]
cmp byte [esi], 0
je 0x44ee85
mov eax, ebx
mov ecx, 0x6964cc
not eax
lock and dword [ecx], eax
push esi
call fcn.004518d0
add esp, 4
cmp byte [0x696920], 0
je 0x44ed5a
push 0x696920
call fcn.004518d0
push 0x60128c
push 0x696920
call fcn.005b7127
mov edi, eax
add esp, 0xc
test edi, edi
je 0x44ed53
mov ecx, 0x6965e8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44ed30
sub ecx, edx
push edi
lea eax, [ecx - 5]
push eax
push 1
push 0x6965e8
call fcn.005b76a5
push edi
call fcn.005b6e51
add esp, 0x14
mov byte [0x696920], 0
cmp byte [esi], 0x2a
je 0x44ed63
xor eax, eax
jmp 0x44ed6f
push 1
xor esi, esi
call fcn.005b2db5
add esp, 4
push 0
push eax
push 0x20000
push esi
call fcn.0044f7b0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x44ee85
mov ecx, dword [ebp + 0xc]
mov edx, edi
xor eax, eax
lock cmpxchg dword [ecx], edx
test eax, eax
je 0x44edab
push edi
call fcn.0044f790
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x69630c], 0
je 0x44ede3
cmp dword [0x696310], 0
jle 0x44ede3
push 0
push 0x6966f0
call fcn.004502d0
push edi
push 0xa
push str._n________n_n
call fcn.0044f810
push 0x6966f0
call fcn.004502e0
add esp, 0x18
push 0x6011b0
lea eax, [ebp - 0x100]
push 0x100
push eax
call fcn.0044dd00
mov esi, eax
add esp, 0xc
lea eax, [esi + 1]
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x44ee01
sub esi, eax
cmp byte [0x69630c], cl
je 0x44ee1b
cmp dword [0x696310], 2
jge 0x44ee74
push 0
push 0x6966f0
call fcn.004502d0
add esp, 8
cmp dword [0x696d04], 0
je 0x44ee59
xor eax, eax
test ebx, ebx
je 0x44ee48
test bl, 1
jne 0x44ee48
nop
sar ebx, 1
inc eax
test bl, 1
je 0x44ee40
push eax
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.0044e690
add esp, 0xc
push edi
lea eax, [ebp - 0x100]
push esi
push eax
call fcn.0044f810
push 0x6966f0
call fcn.004502e0
add esp, 0x10
mov eax, 0x6964cc
lock or dword [eax], ebx
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f5f0
Capabilities:
Create process memory minidump
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx]
push dword [eax]
call fcn.004520f0
add esp, 4
test al, al
je 0x44f73f
push 1
push 0x696358
call fcn.0044f770
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.Exception_occured._Game_will_be_closed_
push ebx
call fcn.00452120
add esp, 0x1c
call fcn.00452620
mov esi, 0x6964e0
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x44f640
sub esi, ecx
lea eax, [esi*2 + 2]
call fcn.005b0700
mov edi, esp
inc esi
push esi
push edi
push esi
push 0x6964e0
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x44f681
push esi
push edi
push esi
push 0x6964e0
push eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x44f6ef
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0x50
push edi
push esi
push eax
call sub.dbghelp.dll_MiniDumpWriteDump
movzx ecx, byte [0x6964e0]
xor edx, edx
test eax, eax
push edi
cmovne ecx, edx
mov byte [0x6964e0], cl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x696334]
test eax, eax
je 0x44f6fa
call eax
mov eax, dword [0x696348]
test eax, eax
je 0x44f715
push 0x5ff700
push dword [ebp + 0xc]
push str.Exception
call eax
add esp, 0xc
call fcn.0044da50
push 1
call fcn.005b2db5
push eax
call fcn.005b7431
push 2
call fcn.005b2db5
push eax
call fcn.005b7431
add esp, 0x10
push 2
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44f810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
xor eax, 1
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.005b76a5
add esp, 0x10
pop ebp
ret
Function at 0x44fe30
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x44fe71
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x224
push eax
push esi
call sub.KERNEL32.dll_Module32First
test eax, eax
jne 0x44fe78
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
nop dword [eax]
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.0044fab0
add esp, 8
test al, al
jne 0x44fec8
lea eax, [ebp - 0x204]
push edi
push eax
call fcn.0044fab0
add esp, 8
test al, al
jne 0x44fec8
lea eax, [ebp - 0x224]
push eax
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x44fe80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x20c]
mov dword [ecx], eax
mov al, 1
mov esp, ebp
pop ebp
ret

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

Disassembly:
cmp dword [ecx], 0
je 0x450464
push esi
push dword [0x6996b8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
sub esi, 1
jne 0x450456
push 0x6996b0
call fcn.00452da0
add esp, 4
push esi
push dword [0x6996b8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x450700
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 0
push 0x698530
call fcn.004502d0
add esp, 8
mov edi, 0x698550
nop dword [eax + eax]
cmp dword [edi + 4], 0
jl 0x450745
add edi, 0x18
cmp edi, 0x699150
jne 0x450720
push 0x698530
call fcn.004502e0
add esp, 4
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x698530
mov dword [edi + 4], 0
call fcn.004502e0
mov ebx, dword [ebp + 8]
push 0x2e
push ebx
call fcn.005d6ec0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x45077d
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x450771
sub ecx, edx
lea esi, [ecx + ebx]
mov eax, esi
sub eax, ebx
mov dword [ebp - 0xc], eax
cdq
and edx, 3
add eax, edx
sar eax, 2
lea eax, [eax + eax*2]
push eax
mov dword [ebp - 4], eax
call fcn.005b38c6
mov edx, eax
add esp, 4
mov dword [ebp - 0x10], edx
test edx, edx
jne 0x4507ad
mov dword [edi + 4], eax
jmp 0x450879
mov ecx, dword [ebp - 4]
lea eax, [esi - 1]
cmp eax, ebx
jbe 0x4507cc
cmp byte [esi - 1], 0x3d
jne 0x4507cc
lea eax, [esi - 2]
dec ecx
cmp eax, ebx
jbe 0x4507cc
cmp byte [esi - 2], 0x3d
jne 0x4507cc
dec ecx
mov dword [edi + 4], ecx
cmp ebx, esi
jae 0x450879
lea eax, [edx + 2]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
sub ebx, eax
mov eax, dword [ebp - 0xc]
dec eax
shr eax, 2
inc eax
mov dword [ebp - 0xc], eax
nop dword [eax]
xor edx, edx
lea esi, [ebp - 4]
add esi, edx
mov cl, byte [ebx + esi]
lea eax, [ecx - 0x41]
cmp al, 0x19
jbe 0x45082c
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x45080d
lea eax, [ecx - 0x47]
jmp 0x45082c
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x450819
lea eax, [ecx + 4]
jmp 0x45082c
cmp cl, 0x2b
je 0x45082a
cmp cl, 0x2f
setne al
dec al
and al, 0x3f
jmp 0x45082c
mov al, 0x3e
inc edx
mov byte [esi], al
cmp edx, 4
jl 0x4507f2
mov eax, dword [ebp - 4]
add ebx, 4
mov esi, dword [ebp - 8]
mov dl, al
shl dl, 2
mov cl, ah
shr cl, 4
mov al, ah
or dl, cl
shl al, 4
mov byte [esi - 2], dl
mov dl, byte [ebp - 2]
mov cl, dl
shl dl, 6
or dl, byte [ebp - 1]
shr cl, 2
or cl, al
mov byte [esi], dl
mov byte [esi - 1], cl
add esi, 3
sub dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
jne 0x4507f0
mov edx, dword [ebp - 0x10]
pop esi
pop ebx
mov dword [edi], edx
mov eax, edi
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0xaaaa5555
mov dword [edi + 8], 0
mov dword [edi + 0x14], 0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x450e80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x450e91
or eax, 0xffffffff
pop esi
pop ebp
ret
push ebx
push edi
mov edi, esi
xor ecx, ecx
and edi, 0xfffffffe
mov eax, esi
and al, 1
cmove edi, ecx
test edi, edi
je 0x450fa6
mov esi, dword [ebp + 0x10]
test esi, esi
jle 0x450f9d
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
cmp ecx, edx
jge 0x450f9d
lea eax, [ecx + esi]
cmp eax, edx
jle 0x450ecd
mov esi, edx
sub esi, ecx
mov eax, dword [edi + 0xc]
test eax, eax
je 0x450f80
push eax
push esi
push 1
push dword [ebp + 0xc]
call fcn.005b8291
mov ebx, eax
add esp, 0x10
cmp ebx, esi
je 0x450f68
nop dword [eax]
push dword [edi + 0xc]
call fcn.005b8c9b
push dword [edi + 0xc]
xor ecx, ecx
test ebx, ebx
cmovg ecx, ebx
sub eax, ecx
mov dword [ebp + 8], eax
call fcn.005b802c
add esp, 8
test eax, eax
je 0x450f2b
mov eax, dword [0x699810]
test eax, eax
je 0x450f68
push ebx
push esi
push dword [ebp + 8]
push dword [edi + 0xc]
call eax
add esp, 0x10
jmp 0x450f40
mov eax, dword [0x699814]
test eax, eax
je 0x450f68
push esi
push dword [ebp + 8]
push dword [edi + 0xc]
call eax
add esp, 0xc
test al, al
je 0x450f68
push 0
push dword [ebp + 8]
push dword [edi + 0xc]
call fcn.005b8688
push dword [edi + 0xc]
push esi
push 1
push dword [ebp + 0xc]
call fcn.005b8291
mov ebx, eax
add esp, 0x1c
cmp ebx, esi
jne 0x450ef0
push dword [edi + 0xc]
call fcn.005b8c9b
add esp, 4
sub eax, dword [edi + 0x10]
mov dword [edi + 8], eax
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [edi]
push esi
add eax, ecx
push eax
push dword [ebp + 0xc]
call fcn.005d67e0
add esp, 0xc
mov ebx, esi
add dword [edi + 8], esi
mov eax, ebx
pop edi
pop ebx
pop esi
pop ebp
ret
xor ebx, ebx
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
xor edi, edi
push esi
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.005b8291
mov ebx, eax
add esp, 0x10
cmp ebx, dword [ebp + 0x10]
je 0x450f79
push esi
call fcn.005b802c
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
jne 0x450fd8
cmp dword [0x699814], eax
jmp 0x450fdf
mov eax, dword [0x699810]
test eax, eax
je 0x450f79
push esi
call fcn.005b8c9b
xor ecx, ecx
add esp, 4
test ebx, ebx
mov edi, eax
cmovg ecx, ebx
sub edi, ecx
cmp dword [ebp + 8], 0
jne 0x451014
mov eax, dword [0x699814]
test eax, eax
je 0x450f79
push dword [ebp + 0x10]
push edi
push esi
call eax
add esp, 0xc
jmp 0x45102c
mov eax, dword [0x699810]
test eax, eax
je 0x450f79
push ebx
push dword [ebp + 0x10]
push edi
push esi
call eax
add esp, 0x10
test al, al
je 0x450f79
push esi
call fcn.005b7f7c
push 0
push edi
push esi
call fcn.005b8688
add esp, 0x10
jmp 0x450fa8

Function at 0x4511e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
jne 0x4511ef
or eax, 0xffffffff
pop ebp
ret
push esi
xor esi, esi
mov ecx, edx
and ecx, 0xfffffffe
mov eax, edx
and al, 1
cmove ecx, esi
pop esi
test ecx, ecx
je 0x451207
xor eax, eax
pop ebp
ret
push edx
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.005b76a5
add esp, 0x10
pop ebp
ret