joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420cf0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x5b906c]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.004214a0
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.0041ca70
mov eax, dword [0x754ffc]
test eax, eax
je 0x420d59
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x420e6e
test byte [0x73fdc4], 2
je 0x420d79
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x420d7e
cmp dword [ebx], 2
jl 0x420dbd
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
push 2
call fcn.0051d053
add esp, 4
push eax
push 1
push esi
push edi
call fcn.0051d37b
push 2
call fcn.0051d053
add esp, 0x14
push eax
call fcn.0051cce8
lea edi, [ebx + 8]
add esp, 4
lea esi, [ebx + 0xc]
test byte [0x73fdc4], 1
je 0x420df5
call fcn.00420940
test al, al
je 0x420df5
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x755000]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], 3
jne 0x420e6e
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x420e29
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00514b20
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00429710
add esp, 4
cmp dword [0x75500c], 0
je 0x420e64
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.0041ca70
lea eax, [esp + 0x28]
push eax
call dword [0x75500c]
add esp, 4
lea ecx, [esp + 0x28]
call fcn.00405450
jmp 0x420e6e
cmp byte [0x755120], 0
jne 0x420eb1
int3
lea ecx, [esp + 0x10]
call fcn.00405450
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.0041be10
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.004823ee
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00484900
mov esp, ebp
pop ebp
ret
push 1
call fcn.00517e9e
int3
Function at 0x423060
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x5b906c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov dword [ebp - 0x54], 0
push edi
sub esp, 8
mov edi, ecx
mov edx, esp
mov eax, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x423095
mov ecx, dword [eax]
jmp 0x423097
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x50]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0041ab60
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x38]
call fcn.004053b0
lea ecx, [ebp - 0x50]
call fcn.004052a0
push ecx
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0041dc90
cmp dword [ebx + 0x14], 0
jne 0x4230d1
xor esi, esi
jmp 0x4230dc
cmp dword [ebx + 0x18], 8
lea esi, [ebx + 4]
jb 0x4230dc
mov esi, dword [esi]
push 0x3c
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.00515560
add esp, 0xc
mov dword [ebp - 0x90], 0x3c
mov dword [ebp - 0x8c], 0x40
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp dword [ebp - 0x24], 8
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
cmp dword [ebp - 0xc], 8
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
xor ecx, ecx
cmp byte [ebx + 0x1c], cl
mov dword [ebp - 0x7c], eax
mov eax, 5
cmovne eax, ecx
mov dword [ebp - 0x84], 0x5a3528
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x70], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x42317e
lea ecx, [edi + 4]
mov byte [edi], al
push eax
mov dword [ecx], eax
call fcn.00419da0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x4231ae
cmp byte [0x755120], 0
je 0x4231ad
jmp 0x4231d1
cmp byte [ebx], 0
je 0x42318e
push 0xffffffffffffffff
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp - 0x58]
lea ecx, [edi + 4]
mov byte [edi], 0
push esi
mov dword [ecx], 0
call fcn.00419da0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp esi, eax
jmp 0x423171
int3
lea ecx, [ebp - 0x20]
call fcn.004052a0
lea ecx, [ebp - 0x38]
call fcn.004052a0
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00484900
mov esp, ebp
pop ebp
ret
push 1
call fcn.00517e9e
int3
Function at 0x4252d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.00485650
mov eax, dword [0x5b906c]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
lea edx, [esp]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0xc], 0
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [esp + 0x20], 0x800
call dword [0x571e0c]
mov esi, eax
test esi, esi
jne 0x425417
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x4253a4
cmp word [esp + 0x10], ax
jne 0x425368
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.00405cb0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00484900
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425370
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00405cb0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00484900
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x425412
push 0x400
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], eax
test eax, eax
je 0x4253f7
cmp eax, 0x400
ja 0x4253f7
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.00405c60
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00484900
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00484900
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.00484900
mov esp, ebp
pop ebp
ret 8
Function at 0x427e00
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movsd xmm0, qword [0x7550b8]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
push ebx
push esi
push edi
mov dword [ebp - 4], 0
lahf
test ah, 0x44
jp 0x427f3f
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 [0x755320]
test cl, 1
jne 0x427e67
rdtsc
or ecx, 1
mov dword [0x755318], eax
mov dword [0x755320], ecx
mov dword [0x75531c], edx
test cl, 2
jne 0x427e97
lea eax, [ebp - 0x10]
or ecx, 2
xorps xmm0, xmm0
mov dword [0x755320], ecx
push eax
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
mov dword [0x755328], eax
mov eax, dword [ebp - 0xc]
mov dword [0x75532c], 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 [0x755328]
mov edx, dword [ebp - 0xc]
sbb edx, dword [0x75532c]
call fcn.00544980
mov edx, dword [ebp - 0x14]
movaps xmm1, xmm0
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x10], xmm1
call fcn.005449c0
movsd xmm2, qword [ebp - 0x10]
divsd xmm2, xmm0
movsd xmm1, qword [0x5a8c08]
comisd xmm1, xmm2
movsd qword [ebp - 0x10], xmm2
jbe 0x427f1d
xorps xmm0, xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub edi, dword [0x755318]
mov ecx, edi
sbb ebx, dword [0x75531c]
mov edx, ebx
call fcn.00544980
divsd xmm0, qword [ebp - 0x10]
movsd qword [0x7550b8], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x428d90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x5b906c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push 0
push 2
mov esi, eax
mov dword [ebp - 0x238], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push eax
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0
call fcn.00419da0
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x428e1b
cmp eax, 0xffffffff
je 0x428e1b
lea ecx, [ebp - 0x238]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x428e1b
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
cmp dword [ebp - 0x230], esi
je 0x428e3a
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
call edi
test eax, eax
jne 0x428e00
xor esi, esi
lea ecx, [ebp - 0x23c]
call fcn.00419d30
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00484900
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x220]
jmp 0x428e1d
Function at 0x429870
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
push edi
mov edi, edx
test ebx, ebx
je 0x4298db
cmp dword [0x755334], 0
jne 0x4298c8
push 0x4c
call fcn.00484911
add esp, 4
mov ecx, eax
call fcn.0042d230
mov esi, eax
mov edx, 0x755334
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4298c8
test esi, esi
je 0x4298c8
lea ecx, [esi + 0x34]
call fcn.00405450
push esi
call fcn.00484944
add esp, 4
mov eax, dword [0x755334]
cmp dword [eax], 1
jl 0x4298db
mov dword [ebp - 4], 0x10000
jmp 0x4298dd
xor ebx, ebx
push 0xc
call fcn.00484911
add esp, 4
mov esi, eax
push 0
push dword [ebp - 4]
mov dword [esi], edi
mov edi, dword [ebp + 8]
test edi, edi
push esi
push 0x4297b0
setne cl
push ebx
mov byte [esi + 4], cl
mov ecx, dword [ebp + 0xc]
push 0
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x429926
push esi
call fcn.00484944
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x429935
mov dword [edi], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430830
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ecx
push edi
mov eax, ecx
mov dword [ebp - 8], ebx
mov edi, 8
or ecx, 0xffffffff
mov esi, edi
cmp edi, ecx
mov dword [ebp - 8], ecx
cmova esi, ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x43086d
cmp byte [0x755120], al
jne 0x430893
int3
test bl, 1
je 0x430880
lea ecx, [ebp - 0xb8]
and ebx, 0xfffffffe
call fcn.00420cf0
mov eax, dword [ebp - 4]
add eax, esi
mov dword [ebp - 4], eax
sub edi, esi
jne 0x43084b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.00517e9e
int3

Function at 0x4320b0
Capabilities:
Get thread local storage value

Disassembly:
push edi
mov edi, ecx
call fcn.004323f0
mov eax, dword [0x73fdec]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
test edx, edx
jne 0x4320d1
call fcn.00439280
mov edx, eax
mov eax, dword [0x75516c]
cmp dword [edx + eax*4], 0
jne 0x432112
push 0x70
call fcn.00484911
add esp, 4
mov ecx, eax
push edi
call fcn.00431ea0
mov ecx, dword [0x73fdec]
mov edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x43210a
call fcn.00439280
mov ecx, eax
mov eax, dword [0x75516c]
mov dword [ecx + eax*4], edi
pop edi
ret

Function at 0x432120
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x755168]
push ebx
push esi
push edi
test eax, eax
jne 0x432130
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x73fdec]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x432149
call fcn.00439280
mov ecx, eax
mov eax, dword [0x75516c]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x4321d9
mov ecx, 0x75512c
xor edi, edi
xor ebx, ebx
call fcn.00428010
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x755150]
test ecx, ecx
je 0x432189
mov eax, dword [ecx + 4]
mov edi, ecx
mov dword [0x755150], eax
mov dword [ecx + 4], ebx
jmp 0x432196
mov ebx, dword [0x755170]
inc ebx
mov dword [0x755170], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x4321b5
push 0x70
call fcn.00484911
add esp, 4
mov ecx, eax
push ebx
call fcn.00431f50
mov edi, eax
mov ecx, dword [0x73fdec]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x4321cf
call fcn.00439280
mov ecx, eax
mov eax, dword [0x75516c]
mov dword [ecx + eax*4], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x432db0
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32FirstW]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
nop
push 0x22c
push 0
push edi
call fcn.00515560
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x432de8
mov byte [esi + 8], 1
call ebx
jmp 0x432dee
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x432e0a
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x432dc0
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4335b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov dword [esp], 0
call fcn.00434620
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 4], eax
lea eax, [esp + 4]
mov ecx, eax
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], 0
call fcn.0043f290
lea ecx, [esp + 0x18]
call fcn.0043f370
mov esp, ebp
pop ebp
ret
Function at 0x433850
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edi
cmp dword [edi + 0x70], ebx
je 0x43389e
push dword [edi + 0x70]
mov eax, dword [edi + 0x74]
push ecx
call eax
add esp, 8
mov esi, dword [eax]
mov dword [eax], ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ebx
test ecx, ecx
je 0x433896
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi + 4]
mov dword [edi + 4], esi
jmp 0x4338c2
mov edx, dword [edi + 8]
call fcn.004334d0
mov edx, dword [eax]
mov dword [eax], ebx
mov ecx, dword [edi + 4]
mov dword [edi + 4], edx
test ecx, ecx
je 0x4338ba
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ebx
test ecx, ecx
je 0x4338cc
mov eax, dword [ecx]
push 1
call dword [eax]
call fcn.00434620
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x43391a
cmp dword [0x754ff4], 3
jg 0x433909
push 3
push 0x23
push str.c:codeszm3rd_trunk_base_threading_thread_local_win.cc
lea ecx, [esp + 0x24]
lea ebx, [eax + 4]
call fcn.00420c30
mov edx, str.Failed_to_TlsSetValue__.
lea ecx, [eax + 8]
call fcn.00407270
test bl, 4
je 0x43391a
lea ecx, [esp + 0x18]
and ebx, 0xfffffffb
call fcn.00420cf0
mov eax, dword [edi + 0xb4]
mov dword [esp + 0x10], eax
lea esi, [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test bl, 8
je 0x43393f
lea ecx, [esp + 0x18]
and ebx, 0xfffffff7
call fcn.00420cf0
test bl, 0x10
je 0x433950
lea ecx, [esp + 0x18]
and ebx, 0xffffffef
call fcn.00420cf0
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x34], 0
mov byte [eax + 0x42], 1
je 0x433983
test bl, 0x20
je 0x433970
lea ecx, [esp + 0x18]
call fcn.00420cf0
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x38]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [esp + 0x10]
mov byte [eax + 0x40], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call ebx
mov edi, dword [edi + 0xb8]
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 ebx
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0xb8]
mov dword [esi + 0xb8], 0
test ecx, ecx
je 0x4339d9
lea edx, [ecx + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
sub eax, 1
jne 0x4339d9
test edx, edx
cmove ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, esi
call fcn.004339f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4354e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48c
mov eax, dword [0x5b906c]
xor eax, esp
mov dword [esp + 0x488], eax
push ebx
push esi
xor ebx, ebx
mov byte [esp + 0xb], 1
push edi
mov dword [esp + 0x10], ebx
mov esi, ecx
push ebx
push 2
mov dword [esp + 0x240], 0x5a4330
mov byte [esp + 0x248], bl
mov dword [esp + 0x478], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push esi
lea ecx, [esp + 0x478]
mov dword [esp + 0x240], eax
mov dword [esp + 0x23c], 0x5a3c98
call fcn.004053b0
lea ecx, [esp + 0x238]
call fcn.00432db0
test eax, eax
je 0x435652
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push dword [eax + 8]
push 0
push 0x100401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov byte [esp + 0x10], 0
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.00419da0
call edi
cmp esi, eax
jne 0x4355a2
cmp byte [0x755120], 0
jne 0x43569a
int3
test bl, 1
je 0x4355b3
lea ecx, [esp + 0x18]
and ebx, 0xfffffffe
call fcn.00420cf0
test bl, 2
je 0x4355c4
lea ecx, [esp + 0x18]
and ebx, 0xfffffffd
call fcn.00420cf0
cmp byte [esp + 0x10], 0
je 0x4355cf
call edi
jmp 0x4355d3
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
mov byte [esp + 0xe], al
test al, al
je 0x435619
cmp byte [esp + 0x10], 0
je 0x4355f4
call edi
jmp 0x4355f8
mov eax, dword [esp + 0x14]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x43562d
test bl, 4
je 0x43562d
and ebx, 0xfffffffb
lea ecx, [esp + 0xc8]
jmp 0x435628
test bl, 8
je 0x435631
and ebx, 0xfffffff7
lea ecx, [esp + 0x180]
call fcn.00421370
mov al, byte [esp + 0xe]
and byte [esp + 0xf], al
lea ecx, [esp + 0x14]
call fcn.00419d30
lea ecx, [esp + 0x238]
call fcn.00432db0
test eax, eax
jne 0x435565
lea ecx, [esp + 0x474]
mov dword [esp + 0x238], 0x5a3c98
call fcn.004052a0
push dword [esp + 0x23c]
mov dword [esp + 0x23c], 0x5a4330
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x494]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00484900
mov esp, ebp
pop ebp
ret
push 1
call fcn.00517e9e
int3

Function at 0x438570
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x5b906c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x43858b
mov ecx, dword [ecx]
mov dword [ebp - 0x68], ecx
lea edx, [ebp - 0x68]
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 - 0x64], eax
call fcn.00422730
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x70]
call fcn.00422850
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call fcn.004384d0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.00484900
mov esp, ebp
pop ebp
ret
Function at 0x4385f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, edi
sar ecx, 2
test ecx, ecx
je 0x43865e
mov ebx, ecx
mov eax, dword [edi]
lea edi, [edi + 4]
movzx esi, cl
movzx edx, al
xor esi, edx
shr ecx, 8
mov dword [ebp - 4], eax
movzx eax, ah
xor ecx, dword [esi*4 + 0x5a3ea0]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 2]
xor ecx, dword [edx*4 + 0x5a3ea0]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 1]
xor ecx, dword [edx*4 + 0x5a3ea0]
movzx edx, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x5a3ea0]
sub ebx, 1
jne 0x438607
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x439280
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x5b906c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x73fdec]
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x40c], ebx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x439320
mov edi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_TlsFree]
cmp eax, ebx
je 0x4392cd
mov ebx, eax
mov dword [ebp - 0x40c], ebx
jmp 0x4392fe
cmp byte [0x755120], 0
jne 0x439397
int3
mov ecx, ebx
mov edx, 0x73fdec
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
cmp eax, 0xffffffff
je 0x439320
push ebx
call esi
mov ebx, dword [0x73fdec]
mov dword [ebp - 0x40c], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x439335
cmp byte [0x755120], 0
jne 0x4393a5
int3
push 0x400
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.00515560
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x400
call fcn.00484b8c
add esp, 4
lea esi, [ebp - 0x408]
mov ebx, eax
mov ecx, 0x100
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [ebp - 0x40c]
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.00484900
mov esp, ebp
pop ebp
ret
push 1
call fcn.00517e9e
push 1
call fcn.00517e9e
push 1
call fcn.00517e9e
int3