joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001db5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp dword [0x10004008], 0xffffffff
push esi
jne 0x10001e7b
lea eax, [ebp - 0x114]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [ebp + eax - 0x114], 0x5c
lea ecx, [ebp + eax - 0x114]
je 0x10001df8
cmp eax, esi
jae 0x10001df8
mov byte [ecx], 0x5c
inc eax
sub esi, eax
lea eax, [ebp + eax - 0x114]
push esi
push str._Tix.log
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push 0x80
push 4
push esi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x10004008], eax
jne 0x10001e3b
xor eax, eax
jmp 0x10001e7e
push 2
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
push str.____________04u__02u__02u__02u:_02u:_02u____________r_n
call fcn.10001eba
add esp, 0x1c
push 1
pop eax
pop esi
leave
ret

Function at 0x10001eba
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
cmp dword [0x10004008], 0xffffffff
je 0x10001f13
mov eax, dword [ebp + 8]
test eax, eax
je 0x10001f13
cmp byte [eax], 0
je 0x10001f13
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x404]
push eax
push dword [0x10004008]
call dword [sym.imp.KERNEL32.dll_WriteFile]
leave
ret
xor eax, eax
leave
ret

Function at 0x1000202d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x104
push eax
push 0xf003f
push ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100020b2
lea eax, [ebp - 8]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100020a9
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
pop ecx
jmp 0x100020b4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x10002168
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
mov eax, 0x100026c0
call fcn.100025a0
sub esp, 0x42c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x437]
mov byte [ebp - 0x438], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x10004b94
push str.SoftwareUseToolbar
mov byte [ebp - 4], 2
stosb byte es:[edi], al
call fcn.1000202d
cmp dword [ebp + 8], ebx
pop ecx
pop ecx
push eax
je 0x100021c9
push str.http:__www.freecruise.com_tb_stat.cgi_eventinstallid_s
jmp 0x100021ce
push str.http:__www.freecruise.com_tb_stat.cgi_eventuninstallid_s
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x22]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.10001a6d
add esp, 0x14
push 1
push ebx
push ebx
push 1
push str.freecruise_toolbar_setup
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x10002294
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x10002223
call fcn.1000230d
jmp 0x10002225
xor eax, eax
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push eax
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x20], edi
je 0x100022cb
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x10002252
call fcn.1000230d
jmp 0x10002254
xor eax, eax
push ebx
push 0x4400000
push ebx
push 0x10004ae4
push ebx
push eax
push 0x10004ae0
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
cmp esi, ebx
je 0x100022c4
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
push esi
jne 0x100022be
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
push dword [ebp - 0x14]
call esi
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x100022a3
call fcn.10001c05
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x100022af
call fcn.10001c05
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x10002294
Function at 0x401030
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
cmp dword [0xc27540], 0x594
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
jne 0x401074
push 0
lea ecx, [ebp - 0x430]
push ecx
push 0
push str.serogefikajuxapowizufin_jikesijelipovocanopowum_ladahuki_nogiwodopuxeyojimada_masitobimalezal
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push str.wabux
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x807f3c]
mov edx, dword [0x807f38]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], edx
call fcn.00401020
mov esi, dword [ebp - 0x10]
mov ecx, dword [0x807f40]
mov edx, dword [0x807f44]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
add esi, 0x23f
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18], 0x20
jmp 0x4010c4
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0xc27540]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401128
push 0
lea eax, [ebp - 0x430]
push eax
push str.patarofo_lugagodagurusol_bahecekolotegejahub
call ebx
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x28]
push ecx
push 0
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
mov eax, dword [ebp - 4]
mov ecx, dword [0xc27540]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x401142
mov dword [0xc26adc], 0xedeb2e40
jmp 0x401154
cmp ecx, 0x3eb
jne 0x401154
mov dword [0xc26490], 0
mov ecx, dword [ebp - 0xc]
lea edx, [esi + edi]
mov dword [ebp - 0x14], edx
mov edx, edi
shr edx, cl
mov dword [0xc26ad8], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0xc27540], 0xc
jne 0x4011a5
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BackupSeek]
mov ecx, dword [ebp - 8]
shl ecx, 4
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
lea eax, [esi + edx]
xor dword [ebp - 4], eax
mov esi, edx
shr esi, cl
add esi, dword [ebp - 0x24]
cmp dword [0xc27540], 0x121
jne 0x4011e5
push str.ledolinosiwogula
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
xor eax, esi
mov dword [ebp - 4], eax
sub edi, eax
lea eax, [ebp - 0x10]
call fcn.00401010
sub dword [ebp - 0x18], 1
jne 0x4010c1
cmp dword [0xc27540], 0xa6d
mov esi, dword [ebp + 8]
mov dword [esi], edi
jne 0x401222
push 0
push str.puloginuyekawayihuyufomeciyijuw
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 8]
pop edi
mov dword [esi + 4], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401230
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0xc27540]
mov ecx, dword [0xc26494]
shr eax, 3
sub esp, 0x41c
test eax, eax
jbe 0x401338
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
lea ebx, [ebx]
cmp dword [0xc27540], 0x959
jne 0x40131e
push 0
call esi
push 0
push 0
call edi
push 0
push 0
push 0
call ebx
push str.rufoxanisidugipifeg_megijimibohexuralikejisala
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0
lea eax, [ebp - 0x41c]
push eax
push 0
push str.ribabacotecisuseyobowozic
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push 0
push str.nadahesajabohaxezize
push str.gajelonibakogofipokuyitipi
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0
push 0
push 0
push 0
push 0
push 0
push str.yavub_socaxofuhod
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 4]
push edx
call fcn.00401030
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x401270
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402570
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x8070c8]
jne 0x40257a
repz ret
jmp fcn.00405f0e

Function at 0x405b3b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402ff9
and dword [ebp - 4], 0
cmp dword [0x808f08], 0
mov ebx, eax
jne 0x405bec
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405c9d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405c9d
push eax
call fcn.00402f87
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x808f08], eax
call esi
push eax
call fcn.00402f87
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x808f0c], eax
call esi
push eax
call fcn.00402f87
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x808f10], eax
call esi
push eax
call fcn.00402f87
pop ecx
mov dword [0x808f18], eax
test eax, eax
je 0x405bec
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402f87
pop ecx
mov dword [0x808f14], eax
mov eax, dword [0x808f14]
cmp eax, ebx
je 0x405c44
cmp dword [0x808f18], ebx
je 0x405c44
push eax
call fcn.00403002
push dword [0x808f18]
mov esi, eax
call fcn.00403002
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405c44
test edi, edi
je 0x405c44
call esi
test eax, eax
je 0x405c3b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405c3b
test byte [ebp - 0xc], 1
jne 0x405c44
or dword [ebp + 0x10], 0x200000
jmp 0x405c7d
mov eax, dword [0x808f0c]
cmp eax, ebx
je 0x405c7d
push eax
call fcn.00403002
pop ecx
test eax, eax
je 0x405c7d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405c7d
mov eax, dword [0x808f10]
cmp eax, ebx
je 0x405c7d
push eax
call fcn.00403002
pop ecx
test eax, eax
je 0x405c7d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x808f08]
call fcn.00403002
pop ecx
test eax, eax
je 0x405c9d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405c9f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406273
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406298
mov eax, dword [0x40a8a0]
cmp eax, 0xffffffff
je 0x40628f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a0], 0xffffffff
jmp 0x40630b
cmp dword [0x440a40], ebx
je 0x40630b
cmp byte [0x440640], bl
je 0x4062d7
cmp dword [0x40a8a0], 0xffffffff
jne 0x4062e0
push 4
push 0x40000000
push 0x440640
call fcn.00405c27
cmp eax, 0xffffffff
mov dword [0x40a8a0], eax
je 0x40630b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a0], 0xffffffff
je 0x40630b
push esi
mov esi, 0x444a60
push 0x40aae8
push esi
call fcn.00405f75
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f68
push eax
push esi
push dword [0x40a8a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064bd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x44023c], esi
push edi
jne 0x4064f7
mov ecx, 0x440238
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064d3
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440638
jl 0x4064ce
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40652c
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440238]
xor eax, esi
inc ecx
dec edx
jne 0x40650f
pop edi
pop esi
not eax
ret 0xc

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x43b46f47
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..pdata_1
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xfce3ee7
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40e330
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x40e390
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x493054]
test esi, esi
jle 0x40e47d
mov edi, dword [0x493058]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40e3c4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40e476
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x40e3b0
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40e4ba
lea ebx, [esi + esi*2]
mov esi, dword [0x493058]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x493058]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40e49a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40e46f
sub eax, 0x40
and eax, 0xffffffbf
je 0x40e46f
mov eax, dword [esp + 0x20]
add ebx, dword [0x493058]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x40e484
add dword [0x493054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x40e3ce
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
mov eax, dword [0x493058]
mov eax, dword [eax + ebx + 4]
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]
Function at 0x40e980
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x493408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x493400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x40e9d5
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 0x40e9ce
test esi, esi
je 0x40e9ce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40e9b0
mov dword [esp], 0x493408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40ebf0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40ec28
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40ec1e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40ec2a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40ec10
xor eax, eax
pop ebx
pop esi
ret
Function at 0x410060
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sym._strlen
mov esi, eax
lea eax, [eax + 0x41]
and eax, 0xfffffff0
call fcn.0040ef00
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
lea edi, [esp + 0xc]
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp], eax
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call sym._memcpy
lea eax, [esi + 0x10]
lea edx, [edi + eax]
mov dword [ebp - 0x20], eax
mov dword [edx], 0x61616161
mov dword [edx + 4], 0x61616161
mov dword [edx + 8], 0x61616161
mov dword [edx + 0xc], 0x61616161
mov dword [edx + 0x10], 0x61616161
mov dword [edx + 0x14], 0x61616161
mov dword [edx + 0x18], 0x61616161
mov dword [edx + 0x1c], 0x61616161
mov dword [ebp - 0x24], edx
mov byte [esp + esi + 0x3c], 0
mov byte [esp + esi + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
sub esp, 0xc
mov byte [edi + esi + 0xf], 0x2d
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
mov edx, dword [ebp - 0x24]
je 0x41014f
int3
mov dword [ebp - 0x24], edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
sub esp, 4
test ax, ax
mov edx, dword [ebp - 0x24]
jne 0x4101f3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call sym._malloc
mov edx, dword [ebp - 0x24]
mov ebx, eax
mov eax, 0x20
bt ebx, eax
jae 0x41018a
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x410182
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AddAtomA]
sub esp, 4
test ax, ax
je 0x4101f0
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
cmp eax, ebx
mov esi, eax
je 0x41020a
mov dword [esp], ebx
call sym._free
mov edi, dword [ebp - 0x1c]
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]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
int3
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call dbg.get_ptr_from_atom
mov esi, eax
jmp 0x4101c4
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 0x4101c4
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x4101c4
Function at 0x41bab0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [0x493e40]
test ebx, ebx
je 0x41bae0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebx], eax
mov eax, dword [0x493e40]
test eax, eax
je 0x41bb05
cmp dword [eax], 0xffffffff
je 0x41bb28
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 ebx, eax
mov dword [0x493e40], eax
jmp 0x41babe
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 [0x493e40], eax
jmp 0x41bacf
call sym._abort
lea esi, [esi]