joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x433020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b28
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b08
xor eax, eax
push ebp
push 0x403b01
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403b44
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b08
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x433020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x433020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404728
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x435048], 0
je 0x404789
cmp word [0x43521c], 0xd7b2
jne 0x404751
cmp dword [0x435224], 0
jbe 0x404751
mov eax, 0x435218
call dword [0x435234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x433098
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4047b0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x433030], 0
jne 0x4047a5
push 0
push 0x433090
push 0x433098
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40648c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4064f2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404b1c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403580
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4064dc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4064f9
lea eax, [ebp - 0x10]
call fcn.004048ac
ret

Function at 0x40ad4c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ad85
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040499c
jmp 0x40ad8e
mov eax, ebx
mov edx, esi
call fcn.00404900
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ad98
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40adb9
mov al, byte [esp]
jmp 0x40adbb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b450
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b2b8
mov eax, dword [0x4341a0]
cmp byte [eax], 0
je 0x40b4cc
mov eax, dword [0x43408c]
call fcn.00402ff8
call fcn.00402b28
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408674
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b514
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b502
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x434064]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x435664]
call fcn.00405934
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40c2a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c304
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404b1c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408168
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c30b
lea eax, [ebp - 0xc]
call fcn.004048ac
ret

Function at 0x4154b8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4154be
ret

Function at 0x417554
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4175a5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41758c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41757c
jmp 0x4175a5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41758d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f9dc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x41fa0a
mov eax, ebx
call fcn.00420490
cmp dword [ebx + 0x40], 0
je 0x41fa03
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x41fa7b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x41fa6d
cmp dword [ebx + 8], 0
je 0x41fa2c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x41fa3e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x41fa6d
cmp dword [ebx + 8], 0
je 0x41fa1f
cmp eax, 3
je 0x41fa51
dec eax
jne 0x41fa1f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x41fa1f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x41fa1f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x41fa99
cmp dword [ebx + 0x14], 0xcc
je 0x41fa99
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0041faa4
pop ebx
ret
Function at 0x4321e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
push 0x20
xor ecx, ecx
mov edx, 0x258
mov eax, 0x320
call fcn.00431d5c
test al, al
jne 0x432209
xor eax, eax
jmp 0x432396
call sub.kernel32.dll_GetTickCount
mov esi, eax
push 0x12c
push 0x190
call sub.user32.dll_SetCursorPos
jmp 0x432384
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x43225d
cmp dword [ebp - 0x18], 0x12
jne 0x432246
mov bl, 1
jmp 0x432384
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x432384
inc dword [0x433fdc]
call sub.kernel32.dll_GetTickCount
sub eax, dword [0x4359fc]
sub eax, esi
mov dword [0x435a00], eax
mov edi, dword [0x4359fc]
call sub.kernel32.dll_GetTickCount
sub eax, esi
mov dword [0x4359fc], eax
push 0
push 2
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [0x4359fc]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
call fcn.004055fc
mov dword [0x4359fc], eax
call sub.user32.dll_GetForegroundWindow
cmp eax, dword [0x4358f0]
jne 0x432362
push 0x435a2c
call sub.user32.dll_GetCursorPos
push 0x12c
push 0x190
call sub.user32.dll_SetCursorPos
mov eax, dword [0x435a2c]
sub eax, 0x190
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fdiv dword [0x4323a0]
fild dword [0x433fe0]
fmulp st(1)
fadd dword [0x435a34]
fstp dword [0x435a34]
wait
mov eax, 0x12c
sub eax, dword [0x435a30]
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
fdiv dword [0x4323a0]
fild dword [0x433fe0]
fmulp st(1)
fsubr dword [0x435a38]
fstp dword [0x435a38]
wait
fld dword [0x435a38]
fcomp dword [0x4323a4]
fnstsw ax
sahf
jbe 0x432347
mov dword [0x435a38], 0x42700000
fld dword [0x435a38]
fcomp dword [0x4323a8]
fnstsw ax
sahf
jae 0x432362
mov dword [0x435a38], 0xc2700000
call fcn.00431580
mov eax, dword [0x4358f4]
push eax
call sub.gdi32.dll_SwapBuffers
cmp byte [0x435917], 0
je 0x43237f
mov bl, 1
jmp 0x432384
call fcn.00431798
test bl, bl
je 0x432224
xor eax, eax
call fcn.00431ba4
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42b5e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
or ebp, 0xffffffff
jmp 0x42b602
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42b609
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42b5f8
mov eax, 1
add ebx, ebx
jne 0x42b61b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42b610
jne 0x42b62c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b610
xor ecx, ecx
sub eax, 3
jb 0x42b640
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42b6b2
mov ebp, eax
add ebx, ebx
jne 0x42b64b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42b658
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42b67c
inc ecx
add ebx, ebx
jne 0x42b668
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42b65d
jne 0x42b679
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b65d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42b69c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42b68d
jmp 0x42b5fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42b69c
add edi, ecx
jmp 0x42b5fe
pop esi
mov edi, esi
mov ecx, 0x3e7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42b6ba
cmp byte [edi], 1
jne 0x42b6ba
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 0x42b6bf
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x42b737
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2c688]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2c73c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42b6ec
mov ecx, edi
jns 0x42b71b
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 + 0x2c740]
or eax, eax
je 0x42b731
mov dword [ebx], eax
add ebx, 4
jmp 0x42b709
call dword [esi + 0x2c748]
mov ebp, dword [esi + 0x2c744]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x42b76b
sub esp, 0xffffff80
jmp 0x40d841

Function at 0x408931
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
add ecx, eax
call fcn.0040894c
and ecx, eax
xor dword [esi], ebx
dec eax
inc esi
cmp esi, edx
jne fcn.00408931
add ecx, ecx
and ecx, ecx
ret
Function at 0x4037c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4b7134]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 1
mov esi, ecx
push 0
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x403828
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
test esi, esi
mov dword [ebp - 8], edi
xorps xmm0, xmm0
mov dword [ebp - 8], 0x4a7030
movq qword [ebp - 0x10], xmm0
setne byte [ebp - 0xc]
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x403916
mov esi, dword [ebp - 0x18]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
mov dword [ebx + 8], eax
cmp dword [esi + 8], 0
jne 0x40387c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
test esi, esi
mov dword [ebp - 8], 0
xorps xmm0, xmm0
mov dword [ebp - 8], 0x4a7030
movq qword [ebp - 0x10], xmm0
setne byte [ebp - 0xc]
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x403923
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push ebx
push 0x403940
push 0
push 0
call fcn.00468e88
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4038f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [ebp - 0x1c], eax
call dword [edx]
test edi, edi
je 0x4038c0
push edi
call esi
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
test eax, eax
je 0x4038cd
push eax
call esi
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
test eax, eax
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
setne byte [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0x4a7030
test eax, eax
jne 0x403930
test edi, edi
je 0x403903
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d24f
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [ebp - 0x10]
call fcn.00403480
mov edx, str.thread.exit_event
lea ecx, [ebp - 0x10]
call fcn.00403480
mov edx, str.thread
lea ecx, [ebp - 0x10]
call fcn.00403480
int3

Function at 0x4039c0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4b7134]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403a07
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [ebp - 8], 0
xorps xmm0, xmm0
mov dword [ebp - 8], 0x4a7030
movq qword [ebp - 0x10], xmm0
setne byte [ebp - 0xc]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x403a18
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045d24f
mov esp, ebp
pop ebp
ret
mov edx, 0x4a4874
lea ecx, [ebp - 0x10]
call fcn.00403480
int3
Function at 0x403d20
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b7134]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x68]
mov dword [esi], vtable.boost::asio::detail::scheduler.0
test edi, edi
je 0x403db3
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
push 0xffffffffffffffff
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [edi + 8]
call ebx
xor eax, eax
mov ecx, 0x4beef4
lock xadd dword [ecx], eax
mov ecx, dword [edi + 4]
push 0
push ecx
test eax, eax
je 0x403d86
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x403d9c
push fcn.00403670
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esi + 0x68]
test edi, edi
je 0x403db3
push dword [edi + 4]
call ebx
push 0xc
push edi
call fcn.0045d6f8
add esp, 8
lea ecx, [esi + 0x58]
call fcn.00415ca0
push dword [esi + 0x34]
call ebx
push dword [esi + 0x38]
call ebx
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
test byte [ebp + 8], 1
mov dword [esi], vtable.boost::asio::execution_context::service.0
je 0x403de6
push 0x6c
push esi
call fcn.0045d6f8
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d24f
mov esp, ebp
pop ebp
ret 4
Function at 0x403e10
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483e4d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4b7134]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x30], 0
lea edi, [esi + 0x18]
mov dword [ebp - 0x28], edi
je 0x403e54
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, 1
jmp 0x403e56
xor bl, bl
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], 0
cmp dword [esi + 0x68], 0
mov byte [esi + 0x61], 1
je 0x403e91
mov byte [esi + 0x60], 1
cmp byte [edi + 0x18], 0
je 0x403e81
push dword [esi + 0x34]
or dword [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp byte [esi + 0x50], 0
jne 0x403e91
cmp dword [esi + 0x40], 0
je 0x403e91
mov byte [esi + 0x50], 1
test bl, bl
je 0x403ea7
cmp byte [edi + 0x18], 0
je 0x403ea2
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor bl, bl
mov byte [ebp - 0x24], bl
mov ecx, dword [esi + 0x68]
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x403f3d
mov eax, dword [ecx + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 4]
push 0xffffffffffffffff
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [ebp - 0x20]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 0x4beef4
lock xadd dword [ecx], eax
mov ecx, dword [ebp - 0x20]
push 0
mov ecx, dword [ecx + 4]
push ecx
test eax, eax
je 0x403efd
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x403f16
push fcn.00403670
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov eax, dword [ebp - 0x20]
push 0xffffffffffffffff
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x403f36
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push dword [ebp - 0x20]
call fcn.0045d6f8
add esp, 8
mov dword [esi + 0x68], 0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x403f8a
lea edx, [esi + 0x44]
mov ecx, dword [eax]
mov dword [esi + 0x58], ecx
test ecx, ecx
jne 0x403f53
mov dword [esi + 0x5c], ecx
mov dword [eax], 0
cmp eax, edx
je 0x403f83
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push ecx
push eax
mov eax, dword [eax + 4]
push 0
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x4a7030
call eax
add esp, 0x10
lea edx, [esi + 0x44]
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x403f47
mov dword [esi + 0x40], 0
test bl, bl
je 0x403f9c
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045d24f
mov esp, ebp
pop ebp
ret
Function at 0x403fc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483e9d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4b7134]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x44], 0
movq xmm0, qword [ebp - 0x48]
movq qword [ebx], xmm0
mov dword [ebx + 8], 0x4a7030
mov eax, dword [esi + 0x54]
lea edi, [esi + 0x18]
test eax, eax
jne 0x404060
cmp byte [edi + 0x18], al
je 0x404025
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov bl, 1
jmp 0x404027
xor bl, bl
mov byte [esi + 0x60], 1
cmp byte [edi + 0x18], 0
je 0x40403e
push dword [esi + 0x34]
or dword [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp byte [esi + 0x50], 0
jne 0x40404e
cmp dword [esi + 0x40], 0
je 0x40404e
mov byte [esi + 0x50], 1
test bl, bl
je 0x404059
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x404165
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x3c], xmm0
mov ecx, esi
mov dword [ebp - 4], 0
push dword [0x4bef7c]
neg ecx
movq qword [ebp - 0x24], xmm0
lea eax, [esi + 0x14]
mov dword [ebp - 0x28], 0
sbb ecx, ecx
mov dword [ebp - 0x1c], 0
and ecx, eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x4bef7c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp byte [edi + 0x18], 0
mov dword [ebp - 0x18], edi
je 0x4040d1
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x14], 1
jmp 0x4040d5
mov byte [ebp - 0x14], 0
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
xor edi, edi
call fcn.004041c0
test eax, eax
je 0x404129
nop
cmp edi, 0xffffffff
lea eax, [edi + 1]
cmove eax, edi
mov edi, eax
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0x18], 0
je 0x404115
cmp byte [ebp - 0x14], 0
jne 0x404115
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x14], 1
push ebx
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004041c0
test eax, eax
jne 0x4040f0
cmp byte [ebp - 0x14], 0
je 0x404138
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x1c]
push dword [0x4bef7c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea ecx, [ebp - 0x30]
call fcn.00415ca0
xor esi, esi
push dword [ebp + esi*4 - 0x3c]
call fcn.0044acf0
inc esi
add esp, 4
cmp esi, 3
jl 0x404151
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045d24f
mov esp, ebp
pop ebp
ret 4
Function at 0x406030
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484100
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b7134]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CryptoPP::FilterWithBufferedInput.0
mov dword [esi + 4], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
mov edx, dword [esi + 0x34]
mov edi, edx
cmovb ecx, eax
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.0044acf0
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x406094
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x4060a5
push 0x48
push esi
call fcn.0045d6f8
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4