joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov dword [esp + 0x10], 0
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x10], ecx
jb 0x40f889
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor ecx, ecx
mov dword [esp + 0xc], ecx
test esi, esi
je 0x40f93e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
mov ebx, eax
call fcn.0040e0b0
cmp esi, 0xffffffff
je 0x40f901
mov dword [esp + 0xc], esi
call fcn.00419020
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x47add8]
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x40f8ee
call fcn.00418540
mov ecx, dword [0x47add8]
push dword [esp + 0x18]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push dword [esp + 0x20]
push edx
push esi
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x40f93e
cmp ecx, 0xffffffff
je 0x40f93e
push 0
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f93a
mov esi, dword [esp + 0x14]
cmp esi, edi
jne 0x40f93a
mov ecx, dword [esp + 0xc]
jmp 0x40f941
mov ecx, dword [esp + 0xc]
or esi, 0xffffffff
test ecx, ecx
je 0x40f99f
cmp ecx, 0xffffffff
je 0x40f99f
call fcn.00419020
mov ebx, dword [ebp + 4]
mov edi, eax
mov ecx, dword [0x47add8]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
test ecx, ecx
jne 0x40f971
call fcn.00418540
mov ecx, dword [0x47add8]
mov eax, dword [ecx]
lea edx, [esp + 0xc]
push edi
push ebx
push edx
push dword [esp + 0x1c]
call dword [eax + 8]
mov ecx, dword [0x47add8]
mov edi, dword [esp + 0xc]
test ecx, ecx
jne 0x40f99a
call fcn.00418540
mov ecx, dword [0x47add8]
mov edx, dword [ecx]
push edi
call dword [edx]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f9b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x478050]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40fb02
cmp eax, 0x104
ja 0x40fb02
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x240]
call fcn.00402e20
sub esp, 8
lea eax, [ebp - 0x240]
cmp dword [ebp - 0x22c], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x240]
mov dword [ecx], eax
mov eax, dword [ebp - 0x230]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x258]
call fcn.0040ce60
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x40fa44
mov ecx, dword [eax]
jmp 0x40fa46
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x228]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0040ce60
lea ecx, [ebp - 0x228]
call fcn.0040db80
lea eax, [ebp - 0x228]
cmp esi, eax
je 0x40fa7a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004048d0
mov eax, dword [ebp - 0x214]
cmp eax, 8
jb 0x40fa98
inc eax
lea ecx, [ebp - 0x228]
push eax
push dword [ebp - 0x228]
call fcn.00405f00
xor eax, eax
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x218], 0
cmp eax, 8
jb 0x40fad3
inc eax
lea ecx, [ebp - 0x258]
push eax
push dword [ebp - 0x258]
call fcn.00405f00
mov eax, dword [ebp - 0x22c]
cmp eax, 8
jb 0x40faf1
inc eax
lea ecx, [ebp - 0x240]
push eax
push dword [ebp - 0x240]
call fcn.00405f00
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447880
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00447880
mov esp, ebp
pop ebp
ret

Function at 0x40fb20
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ecx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.0040da80
test al, al
jne 0x40fb8c
mov ecx, esi
call fcn.0040da80
test al, al
jne 0x40fb8c
cmp dword [edi + 0x10], 0x104
jae 0x40fb8c
cmp dword [esi + 0x10], 0x104
jae 0x40fb8c
cmp dword [esi + 0x14], 8
jb 0x40fb55
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x40fb5d
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40fb8c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40fb8c
test al, 1
je 0x40fb86
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret

Function at 0x40fc70
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.0040da80
test al, al
jne 0x40fc97
mov ecx, dword [ebp + 0xc]
call fcn.0040da80
test al, al
jne 0x40fc97
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.0040fba0
xor al, al
pop ebp
ret
Function at 0x40fca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x40fcc7
mov dword [ebx + 0x10], 0
cmp dword [ebx + 0x14], 0x10
jb 0x40fcc2
mov eax, dword [ebx]
jmp 0x40fcc4
mov eax, ebx
mov byte [eax], 0
call fcn.0040da80
test al, al
je 0x40fcd9
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040f7c0
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x40fcd0
push 0x10000
call fcn.00447872
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.00453858
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40fd66
mov eax, dword [ebp + 8]
nop dword [eax]
test ebx, ebx
je 0x40fd3c
mov ecx, eax
mov eax, edi
sub ecx, dword [ebp - 8]
cmp ecx, edi
cmovb eax, ecx
mov ecx, ebx
push eax
push esi
call fcn.00404da0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x40fd7c
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.00453858
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
test edi, edi
jne 0x40fd20
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0045331a
add esp, 4
test eax, eax
jne 0x40fd7f
mov byte [ebp - 1], 1
jmp 0x40fd83
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.004533bb
add esp, 4
test esi, esi
je 0x40fd99
push esi
call fcn.0044787b
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x410360
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 + 0x18]
xor ecx, eax
imul eax, ecx, 0x1000193
and edx, eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 4]
mov ecx, dword [eax + edx*8]
add edx, edx
mov ebx, dword [eax + edx*4]
lea edx, [eax + edx*4]
cmp ebx, esi
jne 0x4103bb
mov eax, esi
jmp 0x4103c0
mov eax, dword [edx + 4]
mov eax, dword [eax]
cmp ecx, eax
je 0x4103e3
mov eax, dword [ecx + 8]
cmp eax, dword [edi]
je 0x4103cf
mov ecx, dword [ecx]
jmp 0x4103b3
mov eax, dword [edi]
cmp eax, dword [ecx + 8]
mov eax, dword [ebp + 8]
pop edi
cmovne ecx, esi
pop esi
mov dword [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 0x410700
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
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 [esp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x41077c
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x41077c
mov ecx, dword [edi]
nop word [eax + eax]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x4107c4
cmp esi, eax
jne 0x410770
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x4107aa
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 [esp + 0xc]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x410825
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [edx + eax + 4], edi
jmp 0x410847
mov edx, dword [ebp + 0x10]
lea edi, [edx + 0xc]
mov dword [esp + 0xc], edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 8]
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x4107f7
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.00405f00
mov edx, dword [esp + 0xc]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push edx
mov word [edi], ax
call fcn.0044786d
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x41082d
mov dword [ecx], edi
jmp 0x410847
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x410847
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.00410860
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410a50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
cmp byte [esi], 0
je 0x410a71
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x410a74
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test bl, bl
je 0x410afb
cmp byte [ebp + 0xc], 0
je 0x410b4d
cmp byte [esi], 0
je 0x410a9d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x410aa0
mov eax, dword [esi + 4]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x410b4d
cmp dword [0x47ad44], 2
jg 0x410af5
push 2
push 0x86
push str.d:webapps_b_build_slave_repo_build_src_baseprocessprocess_win.cc
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 2
call fcn.00402360
push 1
add eax, 8
push str.Error_waiting_for_process_exit__exit_code:
push eax
call fcn.00406ff0
add esp, 8
mov ecx, eax
call fcn.00403880
test byte [ebp - 4], 2
jmp 0x410b40
cmp dword [0x47ad44], 2
jg 0x410b3c
push 2
push 0x8d
push str.d:webapps_b_build_slave_repo_build_src_baseprocessprocess_win.cc
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 4
call fcn.00402360
push 1
add eax, 8
push str.Unable_to_terminate_process__exit_code:
push eax
call fcn.00406ff0
add esp, 8
mov ecx, eax
call fcn.00403880
test byte [ebp - 4], 4
je 0x410b4d
lea ecx, [ebp - 0xb8]
call fcn.00402420
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x412f30
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 0x412f92
cmp dword [0x47beb8], 0
jne 0x412f7f
push 0x4c
call fcn.0044783a
add esp, 4
mov ecx, eax
call fcn.0041ba00
mov edx, eax
mov esi, 0x47beb8
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x412f7f
test edx, edx
je 0x412f7f
push ecx
mov ecx, edx
call fcn.0041b9c0
mov eax, dword [0x47beb8]
cmp dword [eax], 1
jl 0x412f92
mov dword [ebp - 4], 0x10000
jmp 0x412f94
xor ebx, ebx
push 0xc
call fcn.0044783a
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 0x412e20
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 0x412fdd
push esi
call fcn.0044786d
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x412fec
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 0x4195b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x478050]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push 0xffffffffffffffff
lea ecx, [edi + 4]
push 0
mov dword [edi], 0x472388
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push esi
mov byte [ecx], 0
call fcn.00404c70
push 0x7d0
lea eax, [edi + 0x20]
mov dword [edi + 0x1c], 0
push eax
mov dword [edi], 0x4723d4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
cmp dword [esi + 0x14], 0x10
jb 0x419611
mov ecx, dword [esi]
jmp 0x419613
mov ecx, esi
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x6c]
mov dword [ebp - 0x6c], ecx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x68], eax
call fcn.0042b560
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x74]
call fcn.0042b680
push dword [ebp - 0x70]
push dword [ebp - 0x74]
call fcn.00424b80
add esp, 8
lea ecx, [edi + 0x38]
push edx
push eax
call fcn.00425f20
push 0
push 0
lea ecx, [edi + 0x68]
call fcn.00425f20
mov ecx, dword [ebp - 8]
mov eax, edi
mov dword [edi + 0x68], 0x472ee0
xor ecx, ebp
pop edi
pop esi
call fcn.00447880
mov esp, ebp
pop ebp
ret 4
Function at 0x41a0c0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movsd xmm0, qword [0x47ae38]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
push ebx
push esi
push edi
mov dword [ebp - 4], 0
lahf
test ah, 0x44
jp 0x41a1ff
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 [0x47bea0]
test cl, 1
jne 0x41a127
rdtsc
or ecx, 1
mov dword [0x47be98], eax
mov dword [0x47bea0], ecx
mov dword [0x47be9c], edx
test cl, 2
jne 0x41a157
lea eax, [ebp - 0x10]
or ecx, 2
xorps xmm0, xmm0
mov dword [0x47bea0], ecx
push eax
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
mov dword [0x47bea8], eax
mov eax, dword [ebp - 0xc]
mov dword [0x47beac], 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 [0x47bea8]
mov edx, dword [ebp - 0xc]
sbb edx, dword [0x47beac]
call fcn.00466af0
mov edx, dword [ebp - 0x14]
movaps xmm1, xmm0
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x10], xmm1
call fcn.00466b30
movsd xmm2, qword [ebp - 0x10]
divsd xmm2, xmm0
movsd xmm1, qword [0x474128]
comisd xmm1, xmm2
movsd qword [ebp - 0x10], xmm2
jbe 0x41a1dd
xorps xmm0, xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub edi, dword [0x47be98]
mov ecx, edi
sbb ebx, dword [0x47be9c]
mov edx, ebx
call fcn.00466af0
divsd xmm0, qword [ebp - 0x10]
movsd qword [0x47ae38], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420d70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x47bd10]
mov dword [ebp - 4], 0
push esi
push edi
mov edi, ecx
cmp eax, 2
jge 0x420dd7
mov ecx, 0x47bcf4
call fcn.0041a210
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x47bd10]
cmp eax, 2
jge 0x420dd0
mov eax, dword [0x47bd2c]
test eax, eax
jne 0x420dc0
push 0x420f00
mov ecx, 0x47bd2c
call fcn.0042a4e0
inc dword [0x47bd24]
mov dword [0x47bd10], 3
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x478bd4]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
mov ecx, eax
test ecx, ecx
jne 0x420df2
call fcn.0042a2e0
mov ecx, eax
mov eax, dword [0x47bd30]
cmp dword [ecx + eax*4], 0
jne 0x420e2f
push 0x70
call fcn.0044783a
add esp, 4
mov ecx, eax
push edi
call fcn.00420b40
mov ecx, dword [0x478bd4]
mov edi, eax
push ecx
call esi
mov ecx, eax
test ecx, ecx
jne 0x420e27
call fcn.0042a2e0
mov ecx, eax
mov eax, dword [0x47bd30]
mov dword [ecx + eax*4], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x420e40
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x47bd2c]
push ebx
push esi
push edi
test eax, eax
jne 0x420e50
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x478bd4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x420e69
call fcn.0042a2e0
mov ecx, eax
mov eax, dword [0x47bd30]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x420ef9
mov ecx, 0x47bcf4
xor edi, edi
xor ebx, ebx
call fcn.0041a210
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x47bd14]
test ecx, ecx
je 0x420ea9
mov eax, dword [ecx + 4]
mov edi, ecx
mov dword [0x47bd14], eax
mov dword [ecx + 4], ebx
jmp 0x420eb6
mov ebx, dword [0x47bd34]
inc ebx
mov dword [0x47bd34], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x420ed5
push 0x70
call fcn.0044783a
add esp, 4
mov ecx, eax
push ebx
call fcn.00420c00
mov edi, eax
mov ecx, dword [0x478bd4]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x420eef
call fcn.0042a2e0
mov ecx, eax
mov eax, dword [0x47bd30]
mov dword [ecx + eax*4], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x424c20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x478050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x68]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x60]
mov eax, dword [ebp + 0xc]
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.0042b560
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x70]
call fcn.0042b680
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call fcn.00424b80
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.00447880
mov esp, ebp
pop ebp
ret
Function at 0x425810
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, edi
sar ecx, 2
test ecx, ecx
je 0x425880
push ebx
push esi
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 + 0x472a70]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 2]
xor ecx, dword [edx*4 + 0x472a70]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 1]
xor ecx, dword [edx*4 + 0x472a70]
movzx edx, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x472a70]
sub ebx, 1
jne 0x425827
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x426a00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x478050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
sub esp, 8
mov edx, esp
mov dword [edx], edi
test edi, edi
jne 0x426a2c
xor ecx, ecx
jmp 0x426a49
cmp byte [edi], 0
jne 0x426a35
xor ecx, ecx
jmp 0x426a49
mov ecx, edi
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426a40
sub ecx, esi
lea eax, [ebp - 0x1c]
mov dword [edx + 4], ecx
push eax
call fcn.00413a80
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x426a60
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 8]
mov esi, eax
mov dword [ebp - 0x38], esi
cmp ecx, 8
jb 0x426a81
inc ecx
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.00405f00
test esi, esi
jne 0x426a9a
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447880
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x426bb0
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00447872
add esp, 4
mov esi, eax
push dword [ebp - 0x38]
push esi
sub esp, 8
mov edx, esp
mov dword [edx], edi
test edi, edi
je 0x426ae9
cmp byte [edi], 0
jne 0x426ad7
xor edi, edi
jmp 0x426ae9
lea ecx, [edi + 1]
nop word [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x426ae0
sub edi, ecx
lea eax, [ebp - 0x1c]
mov dword [edx + 4], edi
push eax
call fcn.00413a80
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x426b00
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x426b1c
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00405f00
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402e20
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00413930
mov edi, eax
add esp, 8
cmp ebx, edi
je 0x426b67
mov ecx, dword [ebx + 0x14]
cmp ecx, 0x10
jb 0x426b4e
inc ecx
push ecx
push dword [ebx]
mov ecx, ebx
call fcn.00405260
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
mov dword [ebx + 0x10], 0
push edi
mov byte [ebx], 0
call fcn.00404fd0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x426b7c
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.00405260
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
cmp eax, 8
jb 0x426ba3
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00405f00
test esi, esi
je 0x426bb0
push esi
call fcn.0044787b
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447880
mov esp, ebp
pop ebp
ret 8