joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b3c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5bf23c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5d62dc], 0
je 0x41b3e9
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff5c3
mov esp, ebp
pop ebp
ret
push 0x20
call fcn.004ff5d4
mov ecx, eax
call fcn.0041b210
mov dword [0x5d62dc], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407830
lea eax, [ebp - 0x1c]
push eax
call fcn.0041bab0
lea ecx, [ebp - 0x1c]
call fcn.004077f0
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.004ff5c3
mov esp, ebp
pop ebp
ret

Function at 0x41bab0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5bf23c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push edi
mov dword [ebp - 0x24], 0
mov edi, dword [0x5d62dc]
call fcn.00407890
mov edx, 0x5a8b58
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41bae2
sub edx, ecx
lea eax, [ebp - 0x20]
sar edx, 1
mov ecx, esi
push edx
push 0x5a8b58
push eax
call fcn.00418750
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x41bb3c
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.0041b450
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x20]
call fcn.004077f0
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004ff5c3
mov esp, ebp
pop ebp
ret 4
Function at 0x41d060
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5bf23c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
mov edi, ecx
mov ebx, dword [0x5d62dc]
mov ecx, ebx
push 0x5aa4b8
call fcn.0041b670
test al, al
jne 0x41d0ab
push str.vmodule
mov ecx, ebx
call fcn.0041b670
test al, al
je 0x41d13b
cmp dword [0x5d62e0], 0
je 0x41d0c2
cmp byte [0x5d7718], 0
jne 0x41d1f9
int3
mov eax, dword [0x5d62fc]
push 0x10
mov dword [0x5d62e0], eax
call fcn.004ff5d4
mov esi, eax
mov dword [esp + 0x10], str.vmodule
push ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 7
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x20], 0x5aa4b8
push eax
mov ecx, ebx
mov dword [esp + 0x28], 1
call fcn.0041b720
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0041b720
push eax
mov ecx, esi
call fcn.00423fb0
lea ecx, [esp + 0x1c]
mov dword [0x5d62fc], eax
call fcn.004079d0
lea ecx, [esp + 0x34]
call fcn.004079d0
mov eax, dword [edi]
mov dword [0x5bfd18], eax
test al, 1
jne 0x41d15a
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004ff5c3
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5d62f4]
test eax, eax
je 0x41d174
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5d62f4], 0
mov edx, dword [0x5d62f8]
test edx, edx
jne 0x41d197
push 0x18
call fcn.004ff5d4
add esp, 4
mov ecx, eax
call fcn.00407890
mov edx, eax
mov dword [0x5d62f8], edx
mov esi, dword [edi + 4]
cmp word [esi], 0
jne 0x41d1a4
xor ecx, ecx
jmp 0x41d1bf
mov ecx, esi
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d1b0
sub ecx, ebx
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00407e70
cmp dword [edi + 0xc], 0
jne 0x41d1e2
mov eax, dword [0x5d62f8]
cmp dword [eax + 0x14], 8
jb 0x41d1db
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0041cf20
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ff5c3
mov esp, ebp
pop ebp
ret
push 1
call fcn.0050c2bb
int3
Function at 0x41d2d0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x5bf23c]
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.00416190
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.004132d0
mov eax, dword [0x5d62f0]
test eax, eax
je 0x41d339
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 0x41d44e
test byte [0x5bfd18], 2
je 0x41d359
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x41d35e
cmp dword [ebx], 2
jl 0x41d39d
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
push 2
call fcn.0050d2b4
add esp, 4
push eax
push 1
push esi
push edi
call fcn.0050d5dc
push 2
call fcn.0050d2b4
add esp, 0x14
push eax
call fcn.0050cf49
lea edi, [ebx + 8]
add esp, 4
lea esi, [ebx + 0xc]
test byte [0x5bfd18], 1
je 0x41d3d5
call fcn.0041cf20
test al, al
je 0x41d3d5
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 [0x5d62f4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], 3
jne 0x41d44e
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 0x41d409
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00505560
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00423c20
add esp, 4
cmp dword [0x5d6300], 0
je 0x41d444
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.004132d0
lea eax, [esp + 0x28]
push eax
call dword [0x5d6300]
add esp, 4
lea ecx, [esp + 0x28]
call fcn.004079d0
jmp 0x41d44e
cmp byte [0x5d7718], 0
jne 0x41d491
int3
lea ecx, [esp + 0x10]
call fcn.004079d0
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.00412190
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.005019d0
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ff5c3
mov esp, ebp
pop ebp
ret
push 1
call fcn.0050c2bb
int3
Function at 0x41f0f0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0xc]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 4]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x41f14b
mov ecx, esi
jmp 0x41f150
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x41f175
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x41f15f
mov eax, dword [eax]
jmp 0x41f143
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmovne eax, esi
pop edi
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41f490
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
mov esi, dword [ebx + 4]
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x41f501
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x41f501
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x41f545
cmp esi, eax
jne 0x41f4f5
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x41f52e
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x41f57b
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [edx + eax + 4], edi
jmp 0x41f59d
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 0xc]
dec dword [ebx + 8]
call fcn.004077f0
push edi
call fcn.004ff607
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 0
pop ebx
pop ebp
ret 0xc
cmp eax, esi
jne 0x41f583
mov dword [ecx], edi
jmp 0x41f59d
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x41f59d
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.0041f5c0
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
pop ebp
ret 0xc
Function at 0x420a70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x5bf23c]
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.00412120
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x420afb
cmp eax, 0xffffffff
je 0x420afb
lea ecx, [ebp - 0x238]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x420afb
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
cmp dword [ebp - 0x230], esi
je 0x420b1a
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
call edi
test eax, eax
jne 0x420ae0
xor esi, esi
lea ecx, [ebp - 0x23c]
call fcn.004120b0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004ff5c3
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x220]
jmp 0x420afd

Function at 0x421850
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movsd xmm0, qword [0x5d63c8]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
push ebx
push esi
push edi
mov dword [ebp - 4], 0
lahf
test ah, 0x44
jp 0x42198f
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 [0x5d78e8]
test cl, 1
jne 0x4218b7
rdtsc
or ecx, 1
mov dword [0x5d78e0], eax
mov dword [0x5d78e8], ecx
mov dword [0x5d78e4], edx
test cl, 2
jne 0x4218e7
lea eax, [ebp - 0x10]
or ecx, 2
xorps xmm0, xmm0
mov dword [0x5d78e8], ecx
push eax
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
mov dword [0x5d78f0], eax
mov eax, dword [ebp - 0xc]
mov dword [0x5d78f4], 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 [0x5d78f0]
mov edx, dword [ebp - 0xc]
sbb edx, dword [0x5d78f4]
call fcn.005000b0
mov edx, dword [ebp - 0x14]
movaps xmm1, xmm0
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x10], xmm1
call fcn.005000f0
movsd xmm2, qword [ebp - 0x10]
divsd xmm2, xmm0
movsd xmm1, qword [0x5adec0]
comisd xmm1, xmm2
movsd qword [ebp - 0x10], xmm2
jbe 0x42196d
xorps xmm0, xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub edi, dword [0x5d78e0]
mov ecx, edi
sbb ebx, dword [0x5d78e4]
mov edx, ebx
call fcn.005000b0
divsd xmm0, qword [ebp - 0x10]
movsd qword [0x5d63c8], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423d80
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 0x423deb
cmp dword [0x5d78d0], 0
jne 0x423dd8
push 0x4c
call fcn.004ff5d4
add esp, 4
mov ecx, eax
call fcn.0041a950
mov esi, eax
mov edx, 0x5d78d0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x423dd8
test esi, esi
je 0x423dd8
lea ecx, [esi + 0x34]
call fcn.004079d0
push esi
call fcn.004ff607
add esp, 4
mov eax, dword [0x5d78d0]
cmp dword [eax], 1
jl 0x423deb
mov dword [ebp - 4], 0x10000
jmp 0x423ded
xor ebx, ebx
push 0xc
call fcn.004ff5d4
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 0x423cc0
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 0x423e36
push esi
call fcn.004ff607
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x423e45
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 0x42a640
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 0x42a67d
cmp byte [0x5d7718], al
jne 0x42a6a3
int3
test bl, 1
je 0x42a690
lea ecx, [ebp - 0xb8]
and ebx, 0xfffffffe
call fcn.0041d2d0
mov eax, dword [ebp - 4]
add eax, esi
mov dword [ebp - 4], eax
sub edi, esi
jne 0x42a65b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.0050c2bb
int3

Function at 0x42a6b0
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.00505ae0
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x42a6e8
mov byte [esi + 8], 1
call ebx
jmp 0x42a6ee
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x42a70a
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x42a6c0
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x42aeb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov dword [esp], 0
call fcn.0042bec0
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.00439090
lea ecx, [esp + 0x18]
call fcn.00439170
mov esp, ebp
pop ebp
ret

Function at 0x42bf20
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push dword [ebp + 8]
xor ebx, ebx
push dword [ecx]
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x42bf81
cmp dword [0x5d62e8], 3
jg 0x42bf73
push 3
push 0x23
push str.c:codeszm3rd_trunk_base_threading_thread_local_win.cc
lea ecx, [esp + 0x14]
call fcn.0041d210
add eax, 8
push str.Failed_to_TlsSetValue__.
push eax
call fcn.004129e0
add esp, 8
mov ebx, 1
test bl, 1
je 0x42bf81
lea ecx, [esp + 8]
call fcn.0041d2d0
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42cd50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48c
mov eax, dword [0x5bf23c]
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], 0x5a97a8
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], 0x5a90e0
call fcn.004078b0
lea ecx, [esp + 0x238]
call fcn.0042a6b0
test eax, eax
je 0x42cec2
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.00412120
call edi
cmp esi, eax
jne 0x42ce12
cmp byte [0x5d7718], 0
jne 0x42cf0a
int3
test bl, 1
je 0x42ce23
lea ecx, [esp + 0x18]
and ebx, 0xfffffffe
call fcn.0041d2d0
test bl, 2
je 0x42ce34
lea ecx, [esp + 0x18]
and ebx, 0xfffffffd
call fcn.0041d2d0
cmp byte [esp + 0x10], 0
je 0x42ce3f
call edi
jmp 0x42ce43
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 0x42ce89
cmp byte [esp + 0x10], 0
je 0x42ce64
call edi
jmp 0x42ce68
mov eax, dword [esp + 0x14]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42ce9d
test bl, 4
je 0x42ce9d
and ebx, 0xfffffffb
lea ecx, [esp + 0xc8]
jmp 0x42ce98
test bl, 8
je 0x42cea1
and ebx, 0xfffffff7
lea ecx, [esp + 0x180]
call fcn.0041d970
mov al, byte [esp + 0xe]
and byte [esp + 0xf], al
lea ecx, [esp + 0x14]
call fcn.004120b0
lea ecx, [esp + 0x238]
call fcn.0042a6b0
test eax, eax
jne 0x42cdd5
lea ecx, [esp + 0x474]
mov dword [esp + 0x238], 0x5a90e0
call fcn.004077f0
push dword [esp + 0x23c]
mov dword [esp + 0x23c], 0x5a97a8
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.004ff5c3
mov esp, ebp
pop ebp
ret
push 1
call fcn.0050c2bb
int3

Function at 0x42e7d0
Capabilities:
Get thread local storage value

Disassembly:
push edi
mov edi, ecx
call fcn.0042eb10
mov eax, dword [0x5bfed8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
test edx, edx
jne 0x42e7f1
call fcn.004393a0
mov edx, eax
mov eax, dword [0x5d777c]
cmp dword [edx + eax*4], 0
jne 0x42e832
push 0x70
call fcn.004ff5d4
add esp, 4
mov ecx, eax
push edi
call fcn.0042e5c0
mov ecx, dword [0x5bfed8]
mov edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x42e82a
call fcn.004393a0
mov ecx, eax
mov eax, dword [0x5d777c]
mov dword [ecx + eax*4], edi
pop edi
ret
Function at 0x42e840
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5d7778]
push ebx
push esi
push edi
test eax, eax
jne 0x42e850
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x5bfed8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x42e869
call fcn.004393a0
mov ecx, eax
mov eax, dword [0x5d777c]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x42e8f9
mov ecx, 0x5d7738
xor edi, edi
xor ebx, ebx
call fcn.00421a00
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x5d7760]
test ecx, ecx
je 0x42e8a9
mov eax, dword [ecx + 4]
mov edi, ecx
mov dword [0x5d7760], eax
mov dword [ecx + 4], ebx
jmp 0x42e8b6
mov ebx, dword [0x5d7774]
inc ebx
mov dword [0x5d7774], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x42e8d5
push 0x70
call fcn.004ff5d4
add esp, 4
mov ecx, eax
push ebx
call fcn.0042e670
mov edi, eax
mov ecx, dword [0x5bfed8]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x42e8ef
call fcn.004393a0
mov ecx, eax
mov eax, dword [0x5d777c]
mov dword [ecx + eax*4], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x432290
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x5bf23c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x4322ab
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.00411c10
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x70]
call fcn.00411d30
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call fcn.004321f0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.004ff5c3
mov esp, ebp
pop ebp
ret

Function at 0x432310
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 0x43237e
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 + 0x5a9318]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 2]
xor ecx, dword [edx*4 + 0x5a9318]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 1]
xor ecx, dword [edx*4 + 0x5a9318]
movzx edx, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x5a9318]
sub ebx, 1
jne 0x432327
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433a80
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push edx
xor ebx, ebx
push ecx
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x433ade
cmp dword [0x5d62e8], 3
jg 0x433ad0
push 3
push 0x23
push str.c:codeszm3rd_trunk_base_threading_thread_local_win.cc
lea ecx, [esp + 0x14]
call fcn.0041d210
add eax, 8
push str.Failed_to_TlsSetValue__.
push eax
call fcn.004129e0
add esp, 8
mov ebx, 1
test bl, 1
je 0x433ade
lea ecx, [esp + 8]
call fcn.0041d2d0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433c60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 4], 0x5a9a10
mov dword [edi], 0x5a9a08
mov dword [edi + 4], 0x5a9a28
mov dword [edi + 8], ebx
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov eax, dword [ebx + 0x240]
mov dword [edi + 0x14], eax
call fcn.0042bec0
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call esi
mov edx, dword [eax + 0x5c]
mov dword [ebp - 0x10], eax
mov dword [ebp + 8], edi
lea ecx, [eax + 0x58]
mov eax, dword [ecx]
cmp eax, edx
je 0x433cd3
cmp dword [eax], edi
je 0x433ccf
add eax, 4
cmp eax, edx
jne 0x433cc4
cmp eax, edx
jne 0x433cdc
lea eax, [ebp + 8]
push eax
call fcn.0042c750
call fcn.00438040
push dword [eax]
call esi
mov esi, dword [eax]
mov dword [ebp - 0xc], esi
test esi, esi
je 0x433cfa
mov ecx, 1
lea eax, [esi + 4]
lock xadd dword [eax], ecx
mov eax, dword [0x5d7870]
test eax, eax
jne 0x433d08
call fcn.0043e1b0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
lea ecx, [ebp - 0xc]
push ecx
push str.ThreadLocalEventBuffer
lea ecx, [edi + 4]
push ecx
mov ecx, eax
call fcn.0043da30
test esi, esi
je 0x433d48
lea ecx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [ecx], eax
sub eax, 1
jne 0x433d48
lea eax, [ecx - 4]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [ebx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0x204]
call fcn.00437010
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4