joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414fc0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
movsd xmm0, qword [0x528230]
sub esp, 0x1c
xorps xmm1, xmm1
ucomisd xmm0, xmm1
push ebx
push esi
push edi
lahf
test ah, 0x44
jp 0x4150f8
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 2
mov dword [ebp - 4], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [0x528468]
test cl, 1
jne 0x415020
rdtsc
or ecx, 1
mov dword [0x528460], eax
mov dword [0x528468], ecx
mov dword [0x528464], edx
test cl, 2
jne 0x415050
lea eax, [ebp - 0x10]
or ecx, 2
xorps xmm0, xmm0
mov dword [0x528468], ecx
push eax
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
mov dword [0x528470], eax
mov eax, dword [ebp - 0xc]
mov dword [0x528474], eax
rdtsc
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
movq qword [ebp - 0x10], xmm0
push eax
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [ebp - 4]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x528470]
mov edx, dword [ebp - 0xc]
sbb edx, dword [0x528474]
call fcn.004cf0e0
mov edx, dword [ebp - 0x14]
movaps xmm1, xmm0
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x10], xmm1
call fcn.004cf120
movsd xmm2, qword [ebp - 0x10]
divsd xmm2, xmm0
movsd xmm1, qword [0x4f1c60]
comisd xmm1, xmm2
movsd qword [ebp - 0x10], xmm2
jbe 0x4150d6
xorps xmm0, xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub edi, dword [0x528460]
mov ecx, edi
sbb ebx, dword [0x528464]
mov edx, ebx
call fcn.004cf0e0
divsd xmm0, qword [ebp - 0x10]
movsd qword [0x528230], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415850
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x4f91a4]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [0x528238], 0
je 0x41587e
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
push 0x20
call fcn.00461023
mov ecx, eax
call fcn.00415780
mov dword [0x528238], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 8]
call fcn.004065e0
lea eax, [esp + 4]
push eax
call fcn.00416230
mov eax, dword [esp + 0x18]
cmp eax, 8
jb 0x4158c3
inc eax
lea ecx, [esp + 4]
push eax
push dword [esp + 8]
call fcn.00409180
mov ecx, dword [esp + 0x1c]
mov al, 1
xor ecx, esp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
Function at 0x416230
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, 0x4eefd0
push esi
mov dword [ebp - 0x24], 0
xor eax, eax
push edi
mov edi, dword [0x528238]
lea esi, [edx + 2]
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x416270
sub edx, esi
lea eax, [ebp - 0x20]
sar edx, 1
push edx
push 0x4eefd0
push eax
call fcn.0040c840
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x4162c8
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x24]
call fcn.004158e0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x4162dd
inc eax
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.00409180
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0046100d
mov esp, ebp
pop ebp
ret 4
Function at 0x41c1a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4f91a4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x41c2db
cmp byte [edi + 0x3d], 0
je 0x41c2db
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x41c1ed
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [esp + 0x14], 0
xorps xmm0, xmm0
mov dword [esp + 0x28], ecx
cmp ecx, 0x10
movq qword [esp + 0x14], xmm0
lea eax, [esp + 0x14]
mov dword [esp + 0x24], 8
cmovae eax, dword [esp + 0x14]
mov byte [eax + 8], 0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov eax, dword [edi + 0x38]
lea ebx, [esp + 0x14]
cmp ecx, 0x10
lea esi, [esp + 0x14]
cmovae ebx, edx
cmovae esi, edx
mov eax, dword [eax]
mov dword [esp + 0x10], eax
cmp eax, vtable.std::codecvt_char__char__struct__Mbstatet_.0
jne 0x41c2ef
mov dword [esp + 0xc], esi
xor eax, eax
sub eax, 0
je 0x41c262
sub eax, 1
je 0x41c266
sub eax, 2
je 0x41c2b4
xor bl, bl
jmp 0x41c2b6
mov byte [edi + 0x3d], 0
cmp ecx, 0x10
lea eax, [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x41c299
push dword [edi + 0x4c]
cmp ecx, 0x10
lea eax, [esp + 0x18]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004b1f12
mov ecx, dword [esp + 0x38]
add esp, 0x10
mov edx, dword [esp + 0x14]
cmp esi, eax
jne 0x41c25e
cmp byte [edi + 0x3d], 0
je 0x41c2b4
test esi, esi
jne 0x41c224
push esi
push 8
lea ecx, [esp + 0x1c]
call fcn.00408bf0
jmp 0x41c21c
mov bl, 1
cmp ecx, 0x10
jb 0x41c2c7
inc ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.004078e0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x38]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x28]
add eax, ebx
push eax
push esi
lea eax, [edi + 0x40]
push eax
mov eax, dword [esp + 0x20]
call dword [eax + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
jmp 0x41c24f
Function at 0x41f290
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [0x52827c]
mov esi, ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
test edi, edi
jne 0x41f2c5
mov dword [esi], edi
mov eax, esi
mov dword [esi + 8], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x51f2e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x41f2de
call fcn.00428da0
mov ecx, eax
mov eax, dword [edi + 0xc]
lea ecx, [ecx + eax*8]
mov eax, dword [ecx + 4]
cmp eax, dword [edi + 0x10]
jne 0x41f2f2
mov eax, dword [ecx]
test eax, eax
jne 0x41f2f9
mov ecx, edi
call fcn.0041eea0
mov dword [esi], eax
test eax, eax
je 0x41f315
lea ecx, [esp + 8]
push ecx
push 0x30
push 0
push dword [ebp + 8]
mov ecx, eax
call fcn.0041ec90
mov dword [esi + 4], eax
pop edi
mov dword [esi + 8], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x41f330
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
mov esi, ecx
movlpd qword [esp + 0xc], xmm0
push edi
mov ecx, dword [eax]
call fcn.00429dc0
mov edi, dword [0x52827c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
test edi, edi
jne 0x41f375
mov dword [esi], edi
mov eax, esi
mov dword [esi + 8], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x51f2e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x41f38e
call fcn.00428da0
mov ecx, eax
mov eax, dword [edi + 0xc]
lea ecx, [ecx + eax*8]
mov eax, dword [ecx + 4]
cmp eax, dword [edi + 0x10]
jne 0x41f3a2
mov eax, dword [ecx]
test eax, eax
jne 0x41f3a9
mov ecx, edi
call fcn.0041eea0
mov dword [esi], eax
test eax, eax
je 0x41f3c5
lea ecx, [esp + 8]
push ecx
push 0x41
push 0
push dword [ebp + 8]
mov ecx, eax
call fcn.0041ec90
mov dword [esi + 4], eax
pop edi
mov dword [esi + 8], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x41f850
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xc
mov esi, edx
mov edi, ecx
call fcn.00461023
mov ebx, eax
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ebx], esi
mov esi, dword [ebp + 8]
test esi, esi
push 0
setne dl
mov dword [ebx + 8], ecx
xor eax, eax
mov byte [ebx + 4], dl
cmp eax, edi
sbb eax, eax
and eax, 0x10000
push eax
push ebx
push 0x41f7a0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41f8aa
push ebx
call fcn.0046101e
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
test esi, esi
je 0x41f8b7
pop edi
mov dword [esi], eax
mov al, 1
pop esi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret
Function at 0x41f930
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xc
mov esi, edx
mov edi, ecx
call fcn.00461023
mov edx, dword [ebp + 8]
add esp, 4
mov ebx, eax
xor eax, eax
cmp eax, edi
push 0
sbb ecx, ecx
mov dword [ebx], esi
and ecx, 0x10000
mov byte [ebx + 4], 0
push ecx
push ebx
push 0x41f7a0
push edi
push eax
mov dword [ebx + 8], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41f983
push ebx
call fcn.0046101e
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret

Function at 0x420370
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00422220
mov edx, dword [0x51f2e4]
mov edi, eax
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x420395
call fcn.00428da0
mov ecx, eax
mov eax, dword [edi + 4]
lea ecx, [ecx + eax*8]
mov eax, dword [ecx + 4]
cmp eax, dword [edi + 8]
je 0x4203a7
xor eax, eax
jmp 0x4203a9
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
pop edi
mov dword [esi + 0x1c], esi
pop esi
ret
Function at 0x4210c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x88], 0
je 0x421120
lea edx, [ebx + 0x8c]
lea eax, [edx - 4]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edx]
push eax
mov ecx, dword [eax]
lea eax, [ebp - 4]
push eax
call ecx
add esp, 8
mov esi, dword [eax]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x421106
mov eax, dword [ecx]
push 1
call dword [eax]
lea eax, [ebx + 4]
lea ecx, [ebp - 0xc]
cmp eax, ecx
je 0x421116
mov ecx, dword [eax]
mov dword [eax], esi
jmp 0x42114b
test esi, esi
je 0x421155
mov eax, dword [esi]
mov ecx, esi
jmp 0x421151
mov edx, dword [ebx + 8]
lea ecx, [ebp - 8]
call fcn.00420d00
lea esi, [ebx + 4]
cmp esi, eax
je 0x421148
mov edx, dword [eax]
mov dword [eax], 0
mov ecx, dword [esi]
mov dword [esi], edx
test ecx, ecx
je 0x421148
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x421155
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.00422220
mov ecx, dword [0x51f2e4]
mov esi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
test edx, edx
jne 0x421176
call fcn.00428da0
mov edx, eax
mov eax, dword [esi + 4]
mov dword [edx + eax*8], ebx
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [edx + ecx*8 + 4], eax
mov edi, dword [ebx + 0xac]
mov dword [ebp - 8], edi
lea esi, [edi + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [edi + 0x46], 1
mov edi, dword [edi + 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x4211b9
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [ebx + 0xb0]
lea esi, [edi + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebx + 0xb0]
mov dword [ebx + 0xb0], 0
test ecx, ecx
je 0x421216
lea edx, [ecx + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
sub eax, 1
jne 0x421216
test edx, edx
cmove ecx, eax
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
cmp eax, 0x412fc0
jne 0x421230
test ecx, ecx
je 0x421216
push 1
call dword [edx + 8]
mov ecx, ebx
call fcn.00421240
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
pop edi
pop esi
mov dword [ebx + 0xbc], eax
pop ebx
mov esp, ebp
pop ebp
ret
call eax
jmp 0x421216
Function at 0x427fb0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
mov edi, ecx
cmp dword [edi + 0x14], 8
jb 0x427fc2
mov edi, dword [edi]
lea eax, [ebp - 8]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x427fd8
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
call fcn.00407890
push ebx
push 0
push eax
lea esi, [eax + ebx]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], esi
call fcn.004a90e0
add esp, 0xc
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x18]
push esi
push ebx
push dword [ebp - 8]
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42805f
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42805f
mov esi, dword [ebp - 4]
test esi, esi
je 0x42805f
push 0x1c
call fcn.00461023
movzx ecx, word [esi + 2]
add esp, 4
push ecx
movzx ecx, word [esi]
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.004284f0
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.00418820
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
xor esi, esi
call fcn.00418820
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4282e0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov dword [ebp - 0x228], eax
movzx eax, word [edi + 0x14]
mov word [ebp - 0x18], ax
movzx eax, word [edi + 0x16]
mov word [ebp - 0x16], ax
call esi
mov word [ebp - 0x14], ax
movzx eax, word [edi + 0x16]
mov word [ebp - 0x12], ax
movzx eax, word [edi + 0x14]
mov word [ebp - 0x10], ax
mov eax, 0x4e4
mov word [ebp - 0xe], ax
call esi
mov word [ebp - 0xc], ax
xor esi, esi
mov eax, 0x4e4
mov word [ebp - 0xa], ax
nop word [eax + eax]
movzx eax, word [ebp + esi*2 - 0x16]
movzx ecx, word [ebp + esi*2 - 0x18]
add esi, 2
push ebx
push eax
push ecx
push 0x4ef7bc
push 0x104
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.00427e40
add esp, 0x1c
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [edi + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4283b3
mov edx, dword [ebp - 0x224]
test edx, edx
jne 0x4283cd
cmp esi, 8
jb 0x428350
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x4283f7
mov ecx, dword [ebp - 0x228]
xor eax, eax
push eax
push edx
call fcn.00407070
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046100d
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x428400
mov ecx, dword [ebp - 0x228]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00407070
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046100d
mov esp, ebp
pop ebp
ret 8

Function at 0x4288c0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00428a20
mov edx, dword [0x51f2e4]
mov edi, eax
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x4288e5
call fcn.00428da0
mov ecx, eax
mov eax, dword [edi + 4]
lea ecx, [ecx + eax*8]
mov eax, dword [ecx + 4]
cmp eax, dword [edi + 8]
je 0x4288f7
xor eax, eax
jmp 0x4288f9
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [esi], eax
test eax, eax
je 0x42890d
mov ecx, 1
add eax, 4
lock xadd dword [eax], ecx
pop edi
mov eax, esi
pop esi
ret
Function at 0x428920
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp + 8], 0
push edi
mov dword [esi], eax
call fcn.00428a20
mov edx, dword [0x51f2e4]
mov edi, eax
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
test edx, edx
jne 0x428954
call fcn.00428da0
mov edx, eax
mov eax, dword [edi + 4]
mov dword [edx + eax*8], esi
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
mov dword [edx + ecx*8 + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4289a0
lea ecx, [eax + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
sub eax, 1
jne 0x4289a0
lea eax, [ecx - 4]
neg ecx
sbb ecx, ecx
and ecx, eax
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
cmp eax, 0x412fc0
jne 0x4289a8
test ecx, ecx
je 0x4289a0
push 1
call dword [edx + 8]
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
pop edi
mov eax, esi
pop esi
pop ebp
ret 4
call eax
jmp 0x4289a0

Function at 0x4289b0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
call fcn.00428a20
mov edx, dword [0x51f2e4]
mov esi, eax
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
test edx, edx
jne 0x4289d5
call fcn.00428da0
mov edx, eax
mov eax, dword [esi + 4]
mov dword [edx + eax*8], 0
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [edx + ecx*8 + 4], eax
mov edx, dword [edi]
test edx, edx
je 0x428a16
lea esi, [edx + 4]
or eax, 0xffffffff
lock xadd dword [esi], eax
sub eax, 1
jne 0x428a16
xor ecx, ecx
test esi, esi
cmovne ecx, edx
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
cmp eax, 0x412fc0
jne 0x428a19
push 1
call dword [edx + 8]
pop edi
pop esi
ret
pop edi
pop esi
jmp eax

Function at 0x428aa0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
je 0x428ada
or eax, 0xffffffff
push esi
cmp edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov esi, edi
cmova esi, eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x428ace
int3
add ebx, esi
mov eax, 0xffffffff
sub edi, esi
jne 0x428ab2
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428da0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x51f2e4]
mov dword [ebp - 0x80c], ebx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x428e1c
mov edi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_TlsFree]
cmp eax, ebx
je 0x428de3
mov ebx, eax
mov dword [ebp - 0x80c], ebx
jmp 0x428dfa
int3
mov ecx, ebx
mov edx, 0x51f2e4
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
cmp eax, 0xffffffff
je 0x428e1c
push ebx
call esi
mov ebx, dword [0x51f2e4]
mov dword [ebp - 0x80c], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x428e28
int3
push 0x800
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.004a90e0
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x800
call fcn.004613a5
add esp, 4
lea esi, [ebp - 0x808]
mov ebx, eax
mov ecx, 0x200
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [ebp - 0x80c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046100d
mov esp, ebp
pop ebp
ret

Function at 0x428e90
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1414
call fcn.004613e0
mov eax, dword [0x4f91a4]
xor eax, esp
mov dword [esp + 0x1410], eax
mov eax, dword [0x51f2e4]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x10], eax
push edi
mov ecx, 0x200
lea edi, [esp + 0x18]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.004613ae
add esp, 4
mov ecx, 0x527548
call fcn.00415100
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esp + 0x10]
mov ecx, 0x300
lea edi, [esp + 0x81c]
mov esi, 0x527570
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 0x100
xor dl, dl
lea esi, [esp + 0x820]
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x18]
test ecx, ecx
je 0x428f4d
cmp dword [esi - 8], 0
je 0x428f4d
mov eax, dword [esp + edi*8 + 0x1c]
cmp eax, dword [esi]
jne 0x428f4d
mov eax, dword [esi - 4]
test eax, eax
je 0x428f4d
push ecx
mov dword [esp + edi*8 + 0x1c], 0
call eax
add esp, 4
mov dl, 1
inc edi
add esi, 0xc
cmp edi, 0x100
jl 0x428f20
dec ebx
test ebx, ebx
jle 0x428f62
test dl, dl
jne 0x428f15
push 0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x141c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046100d
mov esp, ebp
pop ebp
ret
Function at 0x4297b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x4f91a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [ebp - 0x68], eax
push 0xffffffffffffffff
lea ecx, [edi + 4]
push 0
mov dword [edi], 0x4efd10
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push ebx
mov byte [ecx], 0
call fcn.004074c0
lea eax, [edi + 0x20]
mov dword [edi + 0x1c], 0
push 0x7d0
push eax
mov dword [edi], 0x4ef918
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push 0x38
mov byte [edi + 0x38], 0
call fcn.00461023
add esp, 4
mov dword [ebp - 0x64], eax
cmp dword [ebx + 0x14], 0x10
push esi
push dword [ebp + 8]
jb 0x429830
mov ecx, dword [ebx]
jmp 0x429832
mov ecx, ebx
mov eax, dword [ebx + 0x10]
lea edx, [ebp - 0x70]
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x6c], eax
call fcn.004440b0
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x78]
call fcn.004441d0
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
bswap eax
bswap ecx
push eax
push ecx
mov ecx, dword [ebp - 0x64]
call fcn.00439a70
push 0x38
mov dword [edi + 0x3c], eax
call fcn.00461023
mov esi, eax
add esp, 4
mov eax, dword [edi + 0x3c]
push dword [ebp - 0x68]
mov eax, dword [eax + 0x20]
push dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
add edx, 1
adc ecx, 0
push ecx
push edx
mov ecx, esi
call fcn.00439a70
mov ecx, dword [ebp - 4]
mov dword [edi + 0x40], eax
xor ecx, ebp
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0046100d
mov esp, ebp
pop ebp
ret 0x10