joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002e3f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1002e405
pop dword [ebp - 0x3c]
mov eax, 0xff6f8277
sub eax, 0xef6c9e72
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xc260a864
add dword [ebp - 0x4c], 0x8bf19ce7
mov dword [ebp - 0x48], 0x49f2f1ca
sub dword [ebp - 0x48], 0x17bfa585
mov dword [ebp - 0x44], 0x56114118
add dword [ebp - 0x44], 0xf63b0316
mov dword [ebp - 0x40], 0x22a9746d
sub dword [ebp - 0x40], 0x22a9746d
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x533ec57b
sub dword [ebp - 0x4c], 0xdecc5c25
mov dword [ebp - 0x48], 0xe81f2a49
add dword [ebp - 0x48], 0x594d372c
mov dword [ebp - 0x44], 0x973b2990
add dword [ebp - 0x44], 0xcc3442dc
mov dword [ebp - 0x40], 0x10b83b12
sub dword [ebp - 0x40], 0x10b83b12
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x47d77
push 0
call eax
mov ecx, 0xf75e742f
sub ecx, 0xf75e19fa
mov edi, eax
mov ebx, 0x10044c00
add ebx, dword [ebp - 0x3c]
mov edx, 0x389eb669
add edx, 0x1ef338a
mov esi, dword [ebx]
xor dword [ebp - 0x28], edx
add esi, edx
sub dword [ebp - 0x14], eax
mov dword [edi], esi
xor dword [ebp - 0x24], 0xe1504058
add edi, 0x8b4aba03
sub edi, 0x8b4ab9ff
add ebx, 0x43e1eb93
sub ebx, 0x43e1eb8f
loop 0x1002e517
add eax, 0x7c88e7b6
sub eax, 0x7c878c0f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x246f4a34
add ecx, 0xeb90b5cc
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x1002f347
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100036e8]
jne 0x1002f6eb
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x10039080], eax
mov dword [0x1003907c], ecx
mov dword [0x10039078], edx
mov dword [0x10039074], ebx
mov dword [0x10039070], esi
mov dword [0x1003906c], edi
mov word [0x10039098], ss
mov word [0x1003908c], cs
mov word [0x10039068], ds
mov word [0x10039064], es
mov word [0x10039060], fs
mov word [0x1003905c], gs
pushfd
pop dword [0x10039090]
mov eax, dword [ebp]
mov dword [0x10039084], eax
mov eax, dword [ebp + 4]
mov dword [0x10039088], eax
lea eax, [ebp + 8]
mov dword [0x10039094], eax
mov eax, dword [ebp - 0x320]
mov dword [0x10038fd0], 0x10001
mov eax, dword [0x10039088]
mov dword [0x10038f84], eax
mov dword [0x10038f78], 0xc0000409
mov dword [0x10038f7c], 1
mov eax, dword [0x100036e8]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10038d38]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x10038fc8], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x100036f0
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x10038fc8], 0
jne 0x1002f7d7
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x41713b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x425458]
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.00408d95
mov dword [ebp - 0x14], eax
cmp dword [0x4d8658], esi
jne 0x41722e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4171bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41730e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41730e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41730e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4d8658], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4d865c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4d8660], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4d8668], eax
test eax, eax
je 0x41722b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4d8664], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x417253
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x417246
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x417268
push 4
pop eax
jmp 0x417310
cmp dword [ebp - 0x14], esi
je 0x417268
push dword [0x4d8658]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41724d
mov eax, dword [0x4d8664]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4172c6
cmp dword [0x4d8668], edi
je 0x4172c6
push eax
call ebx
push dword [0x4d8668]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4172c6
test eax, eax
je 0x4172c6
call ecx
test eax, eax
je 0x4172bb
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 0x4172bb
test byte [ebp - 8], 1
jne 0x4172c6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4172f6
mov eax, dword [0x4d865c]
cmp eax, edi
je 0x4172f3
push eax
call ebx
test eax, eax
je 0x4172f3
call eax
mov esi, eax
test esi, esi
je 0x4172f3
mov eax, dword [0x4d8660]
cmp eax, edi
je 0x4172f3
push eax
call ebx
test eax, eax
je 0x4172f3
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4d8658]
call ebx
test eax, eax
je 0x41730e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x417310
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406f5b
mov esp, ebp
pop ebp
ret
Function at 0x29a010c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x29a010d6
pop dword [ebp - 0x18]
mov eax, 0x29a010d6
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x80da90de
add dword [ebp - 0x28], 0xcd77b46d
mov dword [ebp - 0x24], 0xdf534cd0
sub dword [ebp - 0x24], 0xad20008b
mov dword [ebp - 0x20], 0xe180d3a2
add dword [ebp - 0x20], 0x6acb708c
mov dword [ebp - 0x1c], 0xc249ea6f
sub dword [ebp - 0x1c], 0xc249ea6f
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x43843ee9
add dword [ebp - 0x28], 0x30ee2a6d
mov dword [ebp - 0x24], 0xda0b70d9
add dword [ebp - 0x24], 0x6760f09c
mov dword [ebp - 0x20], 0x67af9c66
add dword [ebp - 0x20], 0xfbbfd006
mov dword [ebp - 0x1c], 0x9fd42ae3
add dword [ebp - 0x1c], 0x602bd51d
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3a200
push 0
call eax
mov ecx, 0x47ba
mov edi, eax
mov edx, 0x7083627c
add edx, 0xb91ecd84
add edx, dword [ebp - 0x18]
mov esi, 0x6a8dad08
sub esi, 0x24f29a30
sub dword [ebp - 8], ecx
mov ebx, dword [edx]
xor dword [ebp - 8], 0x1497ac75
sub ebx, esi
sub dword [ebp - 0xc], 0x65cd923b
mov dword [edi], ebx
add dword [ebp - 4], 0xad7f26fa
add edi, 0x718a32cc
add edi, 0x8e75cd38
add edx, 0xd962ac62
sub edx, 0xd962ac5e
loop 0x29a011e3
add eax, 0x111bb
mov ebx, eax
add eax, 0xf8ee8b50
add eax, 0x71174b5
mov ecx, 0x29a00000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x4bf3cc], 1
mov dword [0x4bf3c8], 1
mov dword [0x4bf3c4], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x4bd00c], eax
mov eax, dword [0x4bf3d8]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x4bf3ec]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x4bf3d4]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x4a3280], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x41cb20
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x41ccb7
mov eax, dword [esp + 0xc]
lea ebx, [eax + ecx]
and ecx, 7
je 0x41cbf9
cmp ecx, 1
je 0x41cbda
cmp ecx, 2
je 0x41cbc3
cmp ecx, 3
je 0x41cbac
cmp ecx, 4
je 0x41cb95
cmp ecx, 5
je 0x41cb7e
cmp ecx, 6
jne 0x41ccbb
movzx ecx, byte [eax]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a5880]
add eax, 1
movzx ecx, byte [eax]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a5880]
add eax, 1
movzx ecx, byte [eax]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a5880]
add eax, 1
movzx ecx, byte [eax]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a5880]
add eax, 1
movzx ecx, byte [eax]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a5880]
add eax, 1
movzx ecx, byte [eax]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a5880]
add eax, 1
cmp ebx, eax
je 0x41ccb7
movzx ecx, byte [eax]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a5880]
mov ecx, edx
movzx edx, byte [eax + 1]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a5880]
mov ecx, edx
movzx edx, byte [eax + 2]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a5880]
mov ecx, edx
movzx edx, byte [eax + 3]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a5880]
mov ecx, edx
movzx edx, byte [eax + 4]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a5880]
mov ecx, edx
movzx edx, byte [eax + 5]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a5880]
mov ecx, edx
movzx edx, byte [eax + 6]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a5880]
movzx ecx, byte [eax + 7]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a5880]
add eax, 8
cmp ebx, eax
jne 0x41cbf9
mov eax, edx
pop ebx
ret
movzx ecx, byte [eax]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a5880]
add eax, 1
jmp 0x41cb67
Function at 0x421ba5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
test edx, edx
jle 0x421d96
lea eax, [ebx + 0x4c]
sub edx, 1
mov ecx, edx
shr ecx, 1
and edx, 0xfffffffe
add edx, edx
add edx, edx
add ecx, edx
shl ecx, 4
lea edx, [ebx + 0xdc]
add ecx, edx
movss xmm0, dword [0x4a5b90]
mov edx, ecx
sub edx, eax
and edx, 0x10
je 0x421c6b
movss xmm1, dword [eax]
xorps xmm1, xmm0
movss dword [eax], xmm1
movss xmm2, dword [eax + 8]
xorps xmm2, xmm0
movss dword [eax + 8], xmm2
movss xmm3, dword [eax + 0x10]
xorps xmm3, xmm0
movss dword [eax + 0x10], xmm3
movss xmm4, dword [eax + 0x18]
xorps xmm4, xmm0
movss dword [eax + 0x18], xmm4
movss xmm5, dword [eax + 0x20]
xorps xmm5, xmm0
movss dword [eax + 0x20], xmm5
movss xmm6, dword [eax + 0x28]
xorps xmm6, xmm0
movss dword [eax + 0x28], xmm6
movss xmm7, dword [eax + 0x30]
xorps xmm7, xmm0
movss dword [eax + 0x30], xmm7
movss xmm1, dword [eax + 0x38]
xorps xmm1, xmm0
movss dword [eax + 0x38], xmm1
movss xmm2, dword [eax + 0x40]
xorps xmm2, xmm0
movss dword [eax + 0x40], xmm2
lea eax, [ebx + 0xdc]
cmp ecx, eax
je 0x421d96
movss xmm3, dword [eax]
xorps xmm3, xmm0
movss dword [eax], xmm3
movss xmm4, dword [eax + 8]
xorps xmm4, xmm0
movss dword [eax + 8], xmm4
movss xmm5, dword [eax + 0x10]
xorps xmm5, xmm0
movss dword [eax + 0x10], xmm5
movss xmm6, dword [eax + 0x18]
xorps xmm6, xmm0
movss dword [eax + 0x18], xmm6
movss xmm7, dword [eax + 0x20]
xorps xmm7, xmm0
movss dword [eax + 0x20], xmm7
movss xmm1, dword [eax + 0x28]
xorps xmm1, xmm0
movss dword [eax + 0x28], xmm1
movss xmm2, dword [eax + 0x30]
xorps xmm2, xmm0
movss dword [eax + 0x30], xmm2
movss xmm3, dword [eax + 0x38]
xorps xmm3, xmm0
movss dword [eax + 0x38], xmm3
movss xmm4, dword [eax + 0x40]
xorps xmm4, xmm0
movss dword [eax + 0x40], xmm4
movss xmm5, dword [eax + 0x90]
xorps xmm5, xmm0
movss dword [eax + 0x90], xmm5
movss xmm6, dword [eax + 0x98]
xorps xmm6, xmm0
movss dword [eax + 0x98], xmm6
movss xmm7, dword [eax + 0xa0]
xorps xmm7, xmm0
movss dword [eax + 0xa0], xmm7
movss xmm1, dword [eax + 0xa8]
xorps xmm1, xmm0
movss dword [eax + 0xa8], xmm1
movss xmm2, dword [eax + 0xb0]
xorps xmm2, xmm0
movss dword [eax + 0xb0], xmm2
movss xmm3, dword [eax + 0xb8]
xorps xmm3, xmm0
movss dword [eax + 0xb8], xmm3
movss xmm4, dword [eax + 0xc0]
xorps xmm4, xmm0
movss dword [eax + 0xc0], xmm4
movss xmm5, dword [eax + 0xc8]
xorps xmm5, xmm0
movss dword [eax + 0xc8], xmm5
movss xmm6, dword [eax + 0xd0]
xorps xmm6, xmm0
movss dword [eax + 0xd0], xmm6
add eax, 0x120
cmp ecx, eax
jne 0x421c6b
pop ebx
pop ebp
ret
Function at 0x46af76
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, dword [esp + 0x14]
movzx edx, byte [esi + 1]
add edx, 0xffffff80
add edx, edx
lea eax, [esi + 2]
mov ebx, dword [esp + 0x18]
add esi, 0x482
movzx ecx, byte [eax]
movzx edi, byte [eax + 1]
add ecx, edi
sub ecx, 0x100
mov ebp, edx
shl ebp, 7
pxor xmm0, xmm0
cvtsi2ss xmm0, ebp
movss dword [ebx], xmm0
add edx, ecx
shl edx, 6
pxor xmm1, xmm1
cvtsi2ss xmm1, edx
movss dword [ebx + 4], xmm1
movzx edx, byte [eax + 2]
movzx edi, byte [eax + 3]
add edx, edi
sub edx, 0x100
mov ebp, ecx
shl ebp, 7
pxor xmm2, xmm2
cvtsi2ss xmm2, ebp
movss dword [ebx + 8], xmm2
add ecx, edx
shl ecx, 6
pxor xmm3, xmm3
cvtsi2ss xmm3, ecx
movss dword [ebx + 0xc], xmm3
movzx ecx, byte [eax + 4]
movzx edi, byte [eax + 5]
add ecx, edi
sub ecx, 0x100
mov ebp, edx
shl ebp, 7
pxor xmm4, xmm4
cvtsi2ss xmm4, ebp
movss dword [ebx + 0x10], xmm4
add edx, ecx
shl edx, 6
pxor xmm5, xmm5
cvtsi2ss xmm5, edx
movss dword [ebx + 0x14], xmm5
movzx edx, byte [eax + 6]
movzx edi, byte [eax + 7]
add edx, edi
sub edx, 0x100
mov ebp, ecx
shl ebp, 7
pxor xmm6, xmm6
cvtsi2ss xmm6, ebp
movss dword [ebx + 0x18], xmm6
add ecx, edx
shl ecx, 6
pxor xmm7, xmm7
cvtsi2ss xmm7, ecx
movss dword [ebx + 0x1c], xmm7
movzx ecx, byte [eax + 8]
movzx edi, byte [eax + 9]
add ecx, edi
sub ecx, 0x100
mov ebp, edx
shl ebp, 7
pxor xmm0, xmm0
cvtsi2ss xmm0, ebp
movss dword [ebx + 0x20], xmm0
add edx, ecx
shl edx, 6
pxor xmm1, xmm1
cvtsi2ss xmm1, edx
movss dword [ebx + 0x24], xmm1
movzx edx, byte [eax + 0xa]
movzx edi, byte [eax + 0xb]
add edx, edi
sub edx, 0x100
mov ebp, ecx
shl ebp, 7
pxor xmm2, xmm2
cvtsi2ss xmm2, ebp
movss dword [ebx + 0x28], xmm2
add ecx, edx
shl ecx, 6
pxor xmm3, xmm3
cvtsi2ss xmm3, ecx
movss dword [ebx + 0x2c], xmm3
add eax, 0xc
add ebx, 0x30
cmp eax, esi
jne 0x46af94
mov eax, 0x480
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x478b40
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 0x478ba0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4bf3e0]
test esi, esi
jle 0x478cc0
mov eax, dword [0x4bf3e4]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x478bd4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x478c57
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x478bc0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x478ce7
mov eax, dword [0x4bf3e4]
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 [0x4bf3e4]
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 0x478cc7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x478c50
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x478c60
add dword [0x4bf3e0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x4bf3e4]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x478c50
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
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x478bde
mov eax, dword [0x4bf3e4]
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, cs:[esi]
nop
Function at 0x479200
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4bf3fc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4bf3f4]
sub esp, 4
test ebx, ebx
je 0x479255
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
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x47924e
test eax, eax
jne 0x47924e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x479230
mov dword [esp], 0x4bf3fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x479590
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4795b5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4795c0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4795b5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x479608
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4795fe
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x47960a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x4795f0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x47e7c0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0x2d
mov dword [esp + 4], global_msg
mov dword [esp], 2
call sym._write
mov dword [esp], 0x17
call sym._IsProcessorFeaturePresent_4
sub esp, 4
test eax, eax
je 0x47e7f9
mov ecx, 8
int 0x29
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 4], 0xc0000409
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x47e820
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0x2c
mov dword [esp + 4], global_msg.0
mov dword [esp], 2
call sym._write
mov dword [esp], 0x17
call sym._IsProcessorFeaturePresent_4
sub esp, 4
test eax, eax
je 0x47e859
mov ecx, 2
int 0x29
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 4], 0xc0000409
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x48d9e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4ac420
mov esi, dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 4
mov dword [esp + 4], str.rand_s
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
je 0x48da28
mov dword [esp + 0x20], esi
mov dword [dbg.init_rand_s], eax
add esp, 0x14
pop ebx
pop esi
jmp eax
mov dword [esp], str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
sub esp, 4
mov dword [esp + 4], str.SystemFunction036
mov dword [esp], eax
call ebx
mov dword [0x4bfe20], eax
sub esp, 8
mov eax, dbg.mingw_rand_s
jmp 0x48da13

Function at 0x48fad0
Capabilities:
Print debug messages

Disassembly:
push edi
pxor xmm0, xmm0
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push ebx
lea ebx, [ebp - 0x41]
sub esp, 0x50
movups xmmword [ebp - 0x21], xmm0
mov eax, dword [0x4bf460]
mov dword [ebp - 0xc], eax
xor eax, eax
movups xmmword [ebp - 0x41], xmm0
movups xmmword [ebp - 0x31], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 8], str.Error_cleaning_up_spin_keys_for_thread__lu._n
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x35
mov dword [esp], ebx
call dbg.__ms_snprintf
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sym._abort
lea esi, cs:[esi]
lea esi, [esi]

Function at 0x48fec0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x4bfe74], 1
je 0x48ff78
push edi
mov eax, 0x4bfe74
push esi
push ebx
sub esp, 0x10
call sym._enterOnceObject
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call sym._pthread_mutex_lock
mov edi, dword [0x4bfe74]
test edi, edi
jne 0x48ff30
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4a3498], eax
cmp eax, 0xffffffff
je sym.__pthread_once_raw.constprop.0.isra.0.cold
mov dword [0x4bfe74], 1
mov dword [esp], esi
call sym._pthread_mutex_unlock
test ebx, ebx
je 0x48ff6a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp sym._leaveOnceObject.part.0
cmp edi, 1
je 0x48ff12
mov dword [esp], 2
call dword [0x4a3480]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x4bfe74
mov dword [esp + 4], str._once__p_is__ld_n
mov dword [esp], eax
call sym._fprintf_1
mov dword [esp], esi
call sym._pthread_mutex_unlock
test ebx, ebx
jne 0x48ff1e
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret