joyce8/EMBER2024-capa huggingface dataset:
Function at 0x505650
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x539890
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x5057f7
mov ecx, dword [0x591a10]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x50574c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.00504370
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.00529411
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00529324
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x58cdb8
call fcn.00529392
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00504730
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.00529411
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.00529324
lea ecx, [esp + 0xc]
call fcn.005297ec
mov ecx, dword [esp + 0xc]
push 0x58d7f4
push ecx
call fcn.00515ee4
add esp, 8
test eax, eax
je 0x505774
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x5056ad
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.00529324
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00529324
jmp 0x5057fb
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.005053f0
test eax, eax
push 0
je 0x5057df
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.00503a90
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x5057c5
cmp eax, 0x64
jg 0x5057b3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x505750
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x505750
cmp eax, 0x64
jge 0x50574c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x505750
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00503a90
mov esi, eax
jmp 0x505750
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x505805
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x52b72f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x52b767
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0052977f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00529757
jmp 0x52b773
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x52ce1d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x52ce5f
call fcn.00532beb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x52ce5f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x52ce56
xor eax, eax
jmp 0x52ce67
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0052ce6d
pop edi
pop esi
pop ebx
ret 4

Function at 0x53311b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x533149
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x533167
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00533081
jmp 0x533167
mov eax, dword [esi + 0x14]
test eax, eax
je 0x533167
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00533081
test edi, edi
mov eax, edi
jne 0x533151
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4014a2
Capabilities:
Check for time delay via queryperformancecounter
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
and dword [ebp - 0x44c], 0
mov dword [0x41a534], 0x6538
push 0x6538
call fcn.0040384e
pop ecx
mov dword [0x41a52c], eax
push 0x6538
push 0x405030
push dword [0x41a52c]
call fcn.0040198a
add esp, 0xc
push 0x100
jmp loc.0041b000
Function at 0x4038be
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4038e7
cmp al, 0x22
je 0x4038df
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4038d3
cmp byte [esi], 0x22
jne 0x4038f1
inc esi
jmp 0x4038f1
cmp al, 0x20
jle 0x4038f1
inc esi
cmp byte [esi], 0x20
jg 0x4038eb
mov al, byte [esi]
test al, al
je 0x4038fb
cmp al, 0x20
jle 0x4038e4
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00403969
push 0x405004
push section..data
call fcn.0040394f
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40392b
movzx eax, word [ebp - 0x14]
jmp 0x40392e
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
jmp 0x41b230
Function at 0x40763d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x407661
jmp 0x40766b
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407651
mov esp, ebp
pop ebp
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4088f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040b436
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x408916
test byte [esp + 8], 2
je 0x408916
mov dword [0x412518], 0xd
mov dword [0x41251c], 5
jmp 0x4088f1
xor eax, eax
ret

Function at 0x40ad45
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4108b0
cmp edx, dword [eax]
je 0x40ad67
add eax, 8
inc ecx
cmp eax, 0x410940
jl 0x40ad58
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4108b0]
jne 0x40ae95
mov eax, dword [0x41256c]
cmp eax, 1
je 0x40ae6f
test eax, eax
jne 0x40ad98
cmp dword [0x410338], 1
je 0x40ae6f
cmp edx, 0xfc
je 0x40ae95
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40adcf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407840
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407720
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40ae12
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407720
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f4ec
push edi
call fcn.00408340
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407840
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407850
lea eax, [ebp - 0xa0]
push 0x40f4cc
push eax
call fcn.00407850
push dword [esi + 0x4108b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407850
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d815
add esp, 0x2c
pop edi
jmp 0x40ae95
lea eax, [ebp + 8]
lea esi, [esi + 0x4108b4]
push 0
push eax
push dword [esi]
call fcn.00407720
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x410c30
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f9b6
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x43dfc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 1
lea ecx, [ebp - 0x100]
call fcn.00406160
mov dword [eax + 0x60], 0x64
add eax, 0x10
push str.ClientMonitor::startMonitor___session_0x
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00404180
add esp, 8
cmp eax, ebx
jne 0x410c93
xor ecx, ecx
jmp 0x410c9a
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov edx, dword [ecx + 0x14]
and edx, 0xfffff9ff
or edx, 0x800
mov dword [ecx + 0x14], edx
push edi
mov ecx, eax
call fcn.0040fe50
cmp eax, ebx
jne 0x410cbc
xor ecx, ecx
jmp 0x410cc3
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov edx, dword [ecx + 0x14]
and edx, 0xfffff3ff
or edx, 0x200
push eax
mov dword [ecx + 0x14], edx
call fcn.004055a0
add esp, 4
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c2c0
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], vtable.std::ios_base.0
call fcn.0041a580
push 0xc
call fcn.0041ba4f
mov esi, eax
add esp, 8
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 1
cmp esi, ebx
je 0x410d63
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x64]
push ecx
push ebx
push 0x100000
mov dword [esi], edi
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x410d61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_sync_with_client_process
lea ecx, [ebp - 0x40]
call fcn.00407c90
push 0x4396bc
lea ecx, [ebp - 0x40]
push ecx
call fcn.0041b280
mov ebx, esi
push 0
push 4
push ebx
push 0x410830
push 0
push 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x410daf
push ebx
call fcn.0041af01
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ClientMonitor::startMonitor___CreateThread
lea ecx, [ebp - 0x40]
call fcn.00407c90
push 0x4396bc
lea edx, [ebp - 0x40]
push edx
call fcn.0041b280
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x410e03
push ebx
call fcn.0041af01
mov edx, dword [edi]
mov eax, dword [edx + 8]
add esp, 4
push edi
call eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x44], str.ClientMonitor::startMonitor___ResumeThread
call fcn.0041adc2
push 0x4386c8
lea edx, [ebp - 0x50]
push edx
mov dword [ebp - 0x50], vtable.std::runtime_error.0
call fcn.0041b280
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b271
mov esp, ebp
pop ebp
ret 4
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43e004]
jne 0x40100a
repz ret
jmp fcn.00401424

Function at 0x406ecc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404a1c
and dword [ebp - 0x14], 0
cmp dword [0x440958], 0
mov dword [ebp - 0x18], eax
jne 0x406f7f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407027
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407027
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x440958], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44095c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x440960], eax
call edi
push eax
call esi
mov dword [0x440968], eax
test eax, eax
je 0x406f7f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x440964], eax
mov eax, dword [0x440964]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406fd8
cmp dword [0x440968], ecx
je 0x406fd8
push eax
call esi
push dword [0x440968]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406fd8
test ebx, ebx
je 0x406fd8
call edi
test eax, eax
je 0x406fcf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406fcf
test byte [ebp - 8], 1
jne 0x406fd8
or dword [ebp + 0x10], 0x200000
jmp 0x40700b
mov eax, dword [0x44095c]
cmp eax, dword [ebp - 0x18]
je 0x40700b
push eax
call esi
test eax, eax
je 0x40700b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40700b
mov eax, dword [0x440960]
cmp eax, dword [ebp - 0x18]
je 0x40700b
push eax
call esi
test eax, eax
je 0x40700b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x440958]
call esi
test eax, eax
je 0x407027
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407029
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x401810
Capabilities:
Terminate thread

Disassembly:
sub esp, 0x1c
xor eax, eax
mov byte [0x404008], al
mov eax, dword [0x407040]
xor edx, edx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
sub esp, 4
add esp, 0x1c
ret

Function at 0x401ce0
Capabilities:
Enumerate processes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x14c
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401cfe
mov dword [esp], 0xfa
call esi
sub esp, 4
mov dword [esp], 2
xor edx, edx
mov dword [esp + 4], edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
cmp eax, 0xffffffff
mov ebx, eax
je 0x401cf2
mov dword [esp], ebx
lea ebp, [esp + 0x18]
mov eax, 0x128
mov dword [esp + 4], ebp
mov dword [esp + 0x18], eax
call sub.KERNEL32.dll_Process32First
sub esp, 8
test eax, eax
jne 0x401d6c
jmp 0x401da2
mov esi, str.ProjectModul4.exe
mov ecx, 0x12
lea edi, [esp + 0x3c]
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
je 0x401d85
mov dword [esp + 4], ebp
mov dword [esp], ebx
call sub.KERNEL32.dll_Process32Next
sub esp, 8
test eax, eax
je 0x401da2
mov ecx, 0xd
mov esi, str.Project1.exe
lea edi, [esp + 0x3c]
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
jne 0x401d40
mov esi, dword [esp + 0x20]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
sub esp, 4
add esp, 0x14c
pop ebx
pop esi
pop edi
pop ebp
ret
xor esi, esi
jmp 0x401d89
Function at 0x402390
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4073c0]
test esi, esi
jle 0x4024a0
mov edi, dword [0x4073c4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4023c4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x402445
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x4023b0
mov dword [esp], eax
mov ebx, eax
call fcn.00402c80
test eax, eax
mov edi, eax
je 0x4024c7
mov eax, dword [0x4073c4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402d80
add eax, dword [edi + 0xc]
mov edx, dword [0x4073c4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4024a7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40243e
sub eax, 4
and eax, 0xfffffffb
jne 0x402450
add dword [0x4073c0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4073c4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40243e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00403180
lea esi, [esi]
xor esi, esi
jmp 0x4023ce
mov eax, dword [0x4073c4]
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.00403180
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00403180
mov esi, esi
lea edi, [edi]

Function at 0x402900
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4073d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4073d0]
sub esp, 4
test ebx, ebx
je 0x402955
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 0x40294e
test esi, esi
je 0x40294e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402930
mov dword [esp], 0x4073d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403180
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00402fc0
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.00402fc0
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
nop
nop
nop
nop
nop
jmp fcn.004014e0
Function at 0x10002d90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029580
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x10036080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0xc4]
push eax
push 0
push 0
push 0x1002a1e0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov edx, str.Desktop:
mov ecx, 0x10037298
call fcn.10007a30
mov edx, dword [ebp - 0xc4]
mov ecx, eax
call fcn.10007da0
push eax
call fcn.10008040
add esp, 4
lea eax, [ebp - 0xc8]
push eax
push 0
push esi
push dword [ebp - 0xc4]
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathAllocCombine]
push dword [ebp - 0xc4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0xb0
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc4], 0
push 0
push eax
call fcn.1000dd20
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xc0]
call fcn.100055a0
mov edx, str.hello
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc0]
call fcn.10007a30
mov edx, str.Saved_as:
mov ecx, 0x10037298
call fcn.10007a30
mov edx, dword [ebp - 0xc8]
mov ecx, eax
call fcn.10007da0
push eax
call fcn.10008040
mov eax, dword [ebp - 0xc0]
add esp, 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
lea ecx, [ebp - 0xbc]
call fcn.10005160
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc4], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.1000ac53
add esp, 4
push dword [ebp - 0xc8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000c255
mov esp, ebp
pop ebp
ret

Function at 0x10002fb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov eax, dword [edi + 4]
mov ebx, dword [edi]
sub eax, ebx
je 0x10002fe7
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp + 8]
mov eax, esi
cmova ecx, dword [ebp + 8]
xor edx, edx
div dword [ebp + 0x18]
mov al, byte [edx + ecx]
xor byte [ebx + esi], al
inc esi
mov eax, dword [edi + 4]
mov ebx, dword [edi]
sub eax, ebx
cmp esi, eax
jne 0x10002fc3
mov ecx, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
cmp ecx, 0xf
jbe 0x1000301a
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003010
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000301c
push ecx
push edx
call fcn.1000c5a0
add esp, 8
pop ebp
ret
call fcn.10012ca0
int3
Function at 0x10007600
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029530
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10036080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.1000c5b3
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1000a3dd
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.100075a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000bb08
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x1000bb29
jl 0x1000bb20
test edi, edi
jne 0x1000bb29
xor eax, eax
xor edx, edx
jmp 0x1000bbea
cmp dword [ebx + 0x38], 0
je 0x1000bb3e
push eax
push edi
push dword [ebp + 8]
call fcn.1000bbf0
jmp 0x1000bbea
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000bb85
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x1000bb85
cmp eax, edi
jb 0x1000bb5f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.1000d7a0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x1000bb8b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1000bbdf
mov ecx, ebx
call fcn.1000b37c
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x1000bbca
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.1001549f
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x1000bbdf
jmp 0x1000bb9d
test edx, edx
je 0x1000bbdf
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.1001549f
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x10016515
Capabilities:
Parse pe header

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