joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48645f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x499484]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00476364
mov dword [ebp - 0x14], eax
cmp dword [0xa92d90], esi
jne 0x486552
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4864df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x486632
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x486632
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x486632
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xa92d90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xa92d94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xa92d98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xa92da0], eax
test eax, eax
je 0x48654f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xa92d9c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x486577
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x48656a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x48658c
push 4
pop eax
jmp 0x486634
cmp dword [ebp - 0x14], esi
je 0x48658c
push dword [0xa92d90]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x486571
mov eax, dword [0xa92d9c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4865ea
cmp dword [0xa92da0], edi
je 0x4865ea
push eax
call ebx
push dword [0xa92da0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4865ea
test eax, eax
je 0x4865ea
call ecx
test eax, eax
je 0x4865df
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4865df
test byte [ebp - 8], 1
jne 0x4865ea
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x48661a
mov eax, dword [0xa92d94]
cmp eax, edi
je 0x486617
push eax
call ebx
test eax, eax
je 0x486617
call eax
mov esi, eax
test esi, esi
je 0x486617
mov eax, dword [0xa92d98]
cmp eax, edi
je 0x486617
push eax
call ebx
test eax, eax
je 0x486617
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xa92d90]
call ebx
test eax, eax
je 0x486632
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x486634
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047580b
mov esp, ebp
pop ebp
ret
Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x426c30
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4e37a4
call sym._EnterCriticalSection_4
mov ebx, dword [0x4e379c]
sub esp, 4
test ebx, ebx
je 0x426c7b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x426c74
test esi, esi
je 0x426c74
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x426c50
mov dword [esp], 0x4e37a4
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x426e60
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x426eb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x426f84
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x426eee
cmp eax, 4
jne 0x426f10
test esi, esi
je 0x426f02
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x426ef4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x426f4f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x426f41
cmp ecx, 0x40
je 0x426f02
cmp ecx, 4
je 0x426f02
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00426e60
lea esi, [esi]
Function at 0x427420
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
call sym._GetLastError_0
test eax, eax
jne 0x427438
add esp, 0x38
pop ebx
ret
lea edx, [esp + 0x2c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1100
call sym._FormatMessageA_28
sub esp, 0x1c
test eax, eax
jne 0x427488
call sym._IsDebuggerPresent_0
test eax, eax
je 0x42742f
int3
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._OutputDebugStringA_4
sub esp, 4
mov dword [esp], ebx
call sym._OutputDebugStringA_4
sub esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._LocalFree_4
sub esp, 4
jmp 0x427477

Function at 0x4274c0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp + 8], 0x4e3824
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
test eax, eax
jne 0x427588
mov edx, dword [0x4e37e0]
mov eax, dword [edx + 4]
test eax, eax
je 0x427550
cmp edx, 0x4e37e0
jne 0x427535
mov dword [0x4e37e0], eax
cmp eax, 0x4e37e0
je 0x42753c
lea esi, [esi]
test eax, eax
je 0x427564
mov edx, dword [edx]
mov dword [eax], edx
mov edx, eax
mov eax, dword [edx + 4]
cmp eax, 0x4e37e0
jne 0x427528
mov eax, dword [0x4e37e4]
mov dword [edx + 4], eax
test eax, eax
je 0x427564
mov edx, eax
jmp 0x427532
mov dword [esp], 0x4e3860
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x4275a4
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
mov eax, 0x4d65c8
call dbg.__eh_shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
movzx eax, ax
mov dword [esp], eax
call sym._DeleteAtom_4
sub esp, 4
jmp 0x427564
Function at 0x4275c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call sym._GetCurrentProcessId_0
xor edx, edx
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + edx + 0x1c]
mov ecx, eax
and eax, 0xf
shr cl, 4
add eax, 0x61
add ecx, 0x41
mov byte [edx + edx + 0x4e3825], al
mov byte [edx + edx + 0x4e3824], cl
add edx, 1
cmp edx, 4
jne 0x4275d2
xor eax, eax
mov edx, 0x5f
jmp 0x42760f
movzx edx, byte [eax + str.__eh_shmem3_gcc_tdm_]
mov byte [eax + 0x4e382c], dl
add eax, 1
cmp eax, 0x15
jne 0x427608
xor eax, eax
mov edx, 0x5f
jmp 0x427637
movzx edx, byte [eax + str.__eh_shmem3_gcc_tdm_]
mov byte [eax + 0x4e3860], dl
add eax, 1
cmp eax, 0x14
jne 0x427630
mov dword [esp + 8], 0x4e3824
mov dword [esp + 4], 0
mov dword [esp], 0
mov byte [0x4e3874], 0x2d
mov dword [0x4e3875], 0x61616161
mov dword [0x4e3879], 0x61616161
mov dword [0x4e387d], 0x61616161
mov dword [0x4e3881], 0x61616161
mov dword [0x4e3885], 0x61616161
mov dword [0x4e3889], 0x61616161
mov dword [0x4e388d], 0x61616161
mov dword [0x4e3891], 0x61616161
mov byte [0x4e3895], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov esi, eax
test eax, eax
jne 0x42781a
mov dword [esp], 0x4e3860
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x427770
mov edx, 0x4e37e0
mov eax, 0x20
nop
bt edx, eax
jae 0x427710
mov ecx, eax
neg ecx
mov byte [ecx + 0x4e3895], 0x41
sub eax, 1
jne 0x427700
mov dword [esp], 0x4e3860
call sym._AddAtomA_4
sub esp, 4
test ax, ax
je 0x427809
mov dword [esp], dbg.__eh_shmem3_gcc_tdm_cleanup_local_region
mov dword [0x4e37e0], 0x4e37e0
call sym.__onexit
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
mov eax, dword [0x4e37e0]
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, ax
mov ebp, 0x20
mov edi, 1
mov dword [esp + 8], 0x36
mov dword [esp + 4], 0x4e3860
mov dword [esp], eax
call sym._GetAtomNameA_12
mov edx, eax
sub esp, 0xc
xor eax, eax
test edx, edx
je 0x427839
lea esi, [esi]
cmp byte [eax + 0x4e3875], 0x41
jne 0x4277bb
mov ecx, ebp
mov edx, edi
sub ecx, eax
shl edx, cl
or esi, edx
add eax, 1
cmp eax, 0x20
jne 0x4277a8
mov eax, esi
mov dword [0x4e37e0], eax
jmp 0x4277dc
cmp edx, 0x4e37e0
je 0x427743
mov edx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x4277d0
cmp edx, 0x4e37e0
je 0x427743
mov dword [edx + 4], 0x4e37e0
mov dword [esp], dbg.__eh_shmem3_gcc_tdm_cleanup_local_region
call sym.__onexit
jmp 0x427743
mov eax, 0x4d6624
call dbg.__eh_shmem_get_error
xor eax, eax
jmp 0x42775e
mov eax, 0x4d6600
call dbg.__eh_shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x4d6648
call dbg.__eh_shmem_get_error
xor eax, eax
jmp 0x4277c5
Function at 0x42ba50
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
sub esp, 8
mov eax, dword [0x4e3900]
test eax, eax
je 0x42bad0
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x42baf0
mov dword [eax + 0x18], 0x4d00f4
mov ebx, 0x4d00f4
call sym._TlsAlloc_0
mov dword [ebx], eax
mov eax, dword [0x4e3900]
test eax, eax
je 0x42baa8
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x42bac8
mov dword [eax + 0x18], 0x4d00f4
mov eax, 0x4d00f4
cmp dword [eax], 0xffffffff
je sym._pthread_tls_init.cold
add esp, 8
pop ebx
ret
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4e3900]
mov edx, dword [edx + 0x18]
test edx, edx
je 0x42ba8b
test eax, eax
jne 0x42bac8
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x42ba97
call sym.___shmem3_winpthreads_tdm_init_local_region
mov ebx, dword [eax + 0x18]
mov eax, dword [0x4e3900]
test ebx, ebx
je 0x42ba68
test eax, eax
jne 0x42baf0
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov ebx, dword [eax + 0x18]
jmp 0x42ba74

Function at 0x42bb00
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
sub esp, 0x88
lea edi, [esp + 0x40]
mov dword [esp + 0x15], 0x6f727245
mov dword [esp + 0x19], 0x6c632072
mov dword [esp + 0x1d], 0x696e6165
mov dword [esp + 0x21], 0x7520676e
mov dword [esp + 0x25], 0x70732070
mov dword [esp + 0x29], 0x6b5f6e69
mov dword [esp + 0x2d], 0x20737965
mov dword [esp + 0x31], 0x20726f66
mov dword [esp + 0x35], 0x65726874
mov dword [esp + 0x39], 0x206461
mov dword [esp + 0x3d], 0
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
call sym._GetCurrentThreadId_0
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.__ultoa
cmp byte [esp + 0x3c], 0
je 0x42bbda
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x42bbad
cmp eax, 0x6a
je 0x42bbca
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x42bba8
cmp eax, 0x6a
je 0x42bbca
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call sym._OutputDebugStringA_4
sub esp, 4
call sym._abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x42bbc0
Function at 0x42ede0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call sym.___pthread_self_lite
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x42ee02
call sym.__pthread_cleanup_dest.part.0
test byte [ebx + 0x20], 0x30
je 0x42efa7
mov eax, dword [0x4e3900]
test eax, eax
je 0x42ee88
mov ebx, dword [eax + 0x18]
test ebx, ebx
jne 0x42eea8
mov dword [eax + 0x18], 0x4d00f4
mov eax, 0x4d00f4
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
test eax, eax
je 0x42ee73
mov edx, dword [ebx + 0x14]
mov eax, dword [eax + 0x18]
test edx, edx
je 0x42eeb0
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x42ee62
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x42ef58
mov dword [esp + 0x20], esi
add esp, 0x14
pop ebx
pop esi
jmp sym.__endthreadex
call sym.___shmem3_winpthreads_tdm_init_local_region
mov ecx, dword [eax + 0x18]
mov eax, dword [0x4e3900]
test ecx, ecx
je 0x42ee20
test eax, eax
jne 0x42eea8
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x42ee2c
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x42eec5
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebx + 0xb0]
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], 0
test eax, eax
je 0x42ef48
mov eax, dword [0x4e3900]
test eax, eax
je 0x42ef20
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x42ef40
mov dword [eax + 0x18], 0x4d00f4
mov eax, 0x4d00f4
mov dword [esp + 4], 0
mov eax, dword [eax]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
mov dword [esp + 0x20], esi
add esp, 0x14
pop ebx
pop esi
jmp sym.__endthreadex
call sym.___shmem3_winpthreads_tdm_init_local_region
mov edx, eax
mov eax, dword [0x4e3900]
mov ebx, dword [edx + 0x18]
test ebx, ebx
je 0x42eee9
test eax, eax
jne 0x42ef40
call sym.___shmem3_winpthreads_tdm_init_local_region
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x42eef5
mov eax, ebx
call sym._push_pthread_mem.part.0
jmp 0x42eed9
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call sym._CloseHandle_4
mov ecx, dword [ebx + 0xb0]
mov dword [ebx + 0x14], 0
sub esp, 4
test ecx, ecx
jne 0x42ef84
mov eax, ebx
call sym._push_pthread_mem.part.0
mov eax, dword [0x4e3900]
test eax, eax
jne 0x42eee2
call sym.___shmem3_winpthreads_tdm_init_local_region
mov eax, dword [eax + 0x18]
test eax, eax
mov eax, dword [0x4e3900]
jne 0x42ef33
jmp 0x42eee9
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
lea esi, [esi]
Function at 0x430c00
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
call sym._GetLastError_0
test eax, eax
jne 0x430c18
add esp, 0x38
pop ebx
ret
lea edx, [esp + 0x2c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1100
call sym._FormatMessageA_28
sub esp, 0x1c
test eax, eax
jne 0x430c68
call sym._IsDebuggerPresent_0
test eax, eax
je 0x430c0f
int3
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._OutputDebugStringA_4
sub esp, 4
mov dword [esp], ebx
call sym._OutputDebugStringA_4
sub esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._LocalFree_4
sub esp, 4
jmp 0x430c57

Function at 0x430ca0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp + 8], 0x4e3960
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
test eax, eax
jne 0x430d68
mov edx, dword [0x4e3900]
mov eax, dword [edx + 4]
test eax, eax
je 0x430d30
cmp edx, 0x4e3900
jne 0x430d15
mov dword [0x4e3900], eax
cmp eax, 0x4e3900
je 0x430d1c
lea esi, [esi]
test eax, eax
je 0x430d44
mov edx, dword [edx]
mov dword [eax], edx
mov edx, eax
mov eax, dword [edx + 4]
cmp eax, 0x4e3900
jne 0x430d08
mov eax, dword [0x4e3904]
mov dword [edx + 4], eax
test eax, eax
je 0x430d44
mov edx, eax
jmp 0x430d12
mov dword [esp], 0x4e39a0
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x430d84
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
mov eax, str.failed_to_to_lock_cleanup_mutex_n
call sym.___shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
movzx eax, ax
mov dword [esp], eax
call sym._DeleteAtom_4
sub esp, 4
jmp 0x430d44
Function at 0x430da0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call sym._GetCurrentProcessId_0
xor edx, edx
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + edx + 0x1c]
mov ecx, eax
and eax, 0xf
shr cl, 4
add eax, 0x61
add ecx, 0x41
mov byte [edx + edx + 0x4e3961], al
mov byte [edx + edx + 0x4e3960], cl
add edx, 1
cmp edx, 4
jne 0x430db2
xor eax, eax
mov edx, 0x5f
jmp 0x430def
movzx edx, byte [eax + str.__shmem3_winpthreads_tdm_]
mov byte [eax + 0x4e3968], dl
add eax, 1
cmp eax, 0x1a
jne 0x430de8
xor eax, eax
mov edx, 0x5f
jmp 0x430e17
movzx edx, byte [eax + str.__shmem3_winpthreads_tdm_]
mov byte [eax + 0x4e39a0], dl
add eax, 1
cmp eax, 0x19
jne 0x430e10
mov dword [esp + 8], 0x4e3960
mov dword [esp + 4], 0
mov dword [esp], 0
mov byte [0x4e39b9], 0x2d
mov dword [0x4e39ba], 0x61616161
mov dword [0x4e39be], 0x61616161
mov dword [0x4e39c2], 0x61616161
mov dword [0x4e39c6], 0x61616161
mov dword [0x4e39ca], 0x61616161
mov dword [0x4e39ce], 0x61616161
mov dword [0x4e39d2], 0x61616161
mov dword [0x4e39d6], 0x61616161
mov byte [0x4e39da], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov esi, eax
test eax, eax
jne 0x430ffa
mov dword [esp], 0x4e39a0
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x430f50
mov edx, 0x4e3900
mov eax, 0x20
nop
bt edx, eax
jae 0x430ef0
mov ecx, eax
neg ecx
mov byte [ecx + 0x4e39da], 0x41
sub eax, 1
jne 0x430ee0
mov dword [esp], 0x4e39a0
call sym._AddAtomA_4
sub esp, 4
test ax, ax
je 0x430fe9
mov dword [esp], sym.___shmem3_winpthreads_tdm_cleanup_local_region
mov dword [0x4e3900], 0x4e3900
call sym.__onexit
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
mov eax, dword [0x4e3900]
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, ax
mov ebp, 0x20
mov edi, 1
mov dword [esp + 8], 0x3b
mov dword [esp + 4], 0x4e39a0
mov dword [esp], eax
call sym._GetAtomNameA_12
mov edx, eax
sub esp, 0xc
xor eax, eax
test edx, edx
je 0x431019
lea esi, [esi]
cmp byte [eax + 0x4e39ba], 0x41
jne 0x430f9b
mov ecx, ebp
mov edx, edi
sub ecx, eax
shl edx, cl
or esi, edx
add eax, 1
cmp eax, 0x20
jne 0x430f88
mov eax, esi
mov dword [0x4e3900], eax
jmp 0x430fbc
cmp edx, 0x4e3900
je 0x430f23
mov edx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x430fb0
cmp edx, 0x4e3900
je 0x430f23
mov dword [edx + 4], 0x4e3900
mov dword [esp], sym.___shmem3_winpthreads_tdm_cleanup_local_region
call sym.__onexit
jmp 0x430f23
mov eax, str.failed_to_add_string_to_atom_table_n
call sym.___shmem_get_error
xor eax, eax
jmp 0x430f3e
mov eax, str.failed_to_to_lock_creation_mutex_n
call sym.___shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, str.failed_to_get_string_from_atom_n
call sym.___shmem_get_error
xor eax, eax
jmp 0x430fa5
Function at 0x43bbe0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._setlocale
test eax, eax
je 0x43bcb4
mov dword [esp], eax
mov esi, eax
mov ebx, esp
call sym._strlen
lea edx, [eax + 1]
add eax, 0x10
shr eax, 4
shl eax, 4
call fcn.00427190
sub esp, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov dword [esp + 4], 0x4d6f04
mov dword [esp], 2
mov esi, eax
call sym._setlocale
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._strcmp
test eax, eax
je 0x43bcc0
mov dword [esp + 4], esi
mov dword [esp], 2
call sym._setlocale
mov eax, esi
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sym._strchr
test eax, eax
je 0x43bcb0
add eax, 1
mov dword [esp], eax
call sym._atoi
mov edi, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._GetCPInfo_8
sub esp, 8
test eax, eax
je 0x43bcb0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x43bd00
xor edi, edi
mov esp, ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LC_ALL
call sym._getenv
test eax, eax
jne 0x43bc72
mov dword [esp], str.LC_CTYPE
call sym._getenv
test eax, eax
jne 0x43bc72
mov dword [esp], str.LANG
call sym._getenv
test eax, eax
jne 0x43bc72
mov eax, esi
jmp 0x43bc72
mov esp, ebx
jmp 0x43bcb4
Function at 0x4025e0
Capabilities:
Terminate process

Disassembly:
jmp 0x442053
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x442064
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00403a5d
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x402671
Capabilities:
Query environment variable

Disassembly:
jmp 0x44d712
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x44d723
pop esi
ret
push ebx
push edi
push esi
call fcn.0044d5f9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402bad
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44d74b
push ebx
push esi
push edi
call fcn.00403922
add esp, 0xc
push 0
call fcn.00403f53
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x403990
Capabilities:
Parse pe header

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

Function at 0x43e333
Capabilities:
Parse pe header

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