joyce8/EMBER2024-capa huggingface dataset:
Function at 0x500ef0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
mov dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
test bl, 1
push esi
mov esi, ecx
mov ecx, 3
cmovne eax, ecx
test bl, 2
mov ecx, 1
cmovne eax, ecx
mov ecx, ebx
and ecx, 4
mov dword [ebp - 4], ecx
mov ecx, 4
cmovne eax, ecx
test bl, 8
mov ecx, 2
cmovne eax, ecx
mov dword [ebp + 0xc], eax
push edi
test bl, 0x10
je 0x500f47
mov dword [ebp + 0xc], 5
jmp 0x500f4f
test eax, eax
je 0x501079
xor edx, edx
mov edi, 0x40000000
test bl, 0x40
mov eax, 4
cmovne edx, edi
test bl, 0x80
cmovne edx, eax
test bl, 0x20
je 0x500f72
or edx, 0x80000000
test ebx, 0x4000
je 0x500f80
or edx, 0x100
test ebx, 0x40000
je 0x500f8e
or edx, 0x20000000
mov ecx, ebx
shr ecx, 8
not ecx
and ecx, 1
test ebx, 0x200
jne 0x500fa3
or ecx, 2
test ebx, 0x8000
je 0x500fad
or ecx, eax
xor eax, eax
test ebx, 0x400
cmovne eax, edi
test ebx, 0x800
je 0x500fc5
or eax, 0x100
test ebx, 0x1000
je 0x500fd0
or eax, 2
test ebx, 0x2000
je 0x500fdd
or eax, 0x4000000
test ebx, 0x20000
je 0x500fea
or eax, 0x2000000
test ebx, 0x80000
je 0x500ff7
or eax, 0x8000000
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x501002
mov edi, dword [edi]
push 0
push eax
push dword [ebp + 0xc]
push 0
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
mov ecx, esi
call fcn.004e7390
mov eax, dword [esi]
test eax, eax
je 0x501069
cmp eax, 0xffffffff
je 0x501069
mov eax, ebx
mov dword [esi + 0x20], 0
shr eax, 0xa
and al, 1
cmp dword [ebp - 4], 0
mov byte [esi + 0x25], al
je 0x501057
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
mov byte [esi + 0x24], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test bl, 0xa
je 0x501079
mov byte [esi + 0x24], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00500b20
mov dword [esi + 0x20], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x501a10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
mov dword [ebp - 4], 0
push edi
mov edi, edx
test esi, esi
je 0x501aa2
test edi, edi
je 0x501aa2
push 0x1c
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x501a4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, 0x40
and eax, 0xf0
lea eax, [ebp - 4]
push eax
mov eax, 4
cmovne eax, ecx
push eax
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x501a94
mov eax, dword [edi]
xor edi, edi
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0x57
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x509310
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [eax]
mov dword [esp + 0xc], ebx
mov dword [esi], eax
test eax, eax
je 0x50933d
mov ecx, 1
add eax, 4
lock xadd dword [eax], ecx
call fcn.00509450
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x50938c
cmp dword [0x5c1b2c], 3
jg 0x50937e
push 3
push 0x23
push str.d:webapps_b_build_slave_repo_build_src_base_threading_thread_local_win.cc
lea ecx, [esp + 0x1c]
lea ebx, [eax + 4]
call fcn.004ebdd0
add eax, 8
push str.Failed_to_TlsSetValue__.
push eax
call fcn.004e3770
add esp, 8
test bl, 4
je 0x50938c
lea ecx, [esp + 0x10]
call fcn.004ebe90
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5093a0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
push ebx
push esi
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0xc], ebx
call fcn.00509450
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x509405
cmp dword [0x5c1b2c], 3
jg 0x5093f7
push 3
push 0x23
push str.d:webapps_b_build_slave_repo_build_src_base_threading_thread_local_win.cc
lea ecx, [esp + 0x1c]
lea ebx, [eax + 2]
call fcn.004ebdd0
add eax, 8
push str.Failed_to_TlsSetValue__.
push eax
call fcn.004e3770
add esp, 8
test bl, 2
je 0x509405
lea ecx, [esp + 0x10]
call fcn.004ebe90
mov ecx, dword [esi]
test ecx, ecx
je 0x509441
add ecx, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
sub eax, 1
setne al
test al, al
jne 0x509441
test ecx, ecx
je 0x509428
add ecx, 0xfffffffc
jmp 0x50942a
xor ecx, ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5ad9ec
jne 0x509447
push 1
call dword [eax + 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call edx
jmp 0x509441
Function at 0x50a740
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
call fcn.004efa70
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
cmp byte [eax + 0x6d], 0
lea eax, [esp + 0x28]
je 0x50a7a2
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push 0xf
push 0xf
push 0
push eax
call esi
test eax, eax
jne 0x50a79e
push 1
push 0x113
push 0x113
push eax
lea eax, [esp + 0x34]
push eax
call esi
test eax, eax
jne 0x50a79e
xor bl, bl
jmp 0x50a7b4
mov bl, 1
jmp 0x50a7b4
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
setne bl
mov esi, dword [0x5c2b0c]
test esi, esi
jne 0x50a7e2
call fcn.004fb100
test eax, eax
jne 0x50a7ce
mov esi, 0x5c2a31
jmp 0x50a7dc
push 0x5addf0
mov ecx, eax
call fcn.004f93d0
mov esi, eax
mov dword [0x5c2b0c], esi
mov dword [esp + 0x10], 0
test byte [esi], 0xd
je 0x50a827
lea eax, [esp + 0x28]
mov edx, esi
push eax
push 0x5addf4
sub esp, 0x18
push str.origin_base::MessagePumpForUI::ProcessPumpReplacementMessage
call fcn.0050b220
mov dword [esp + 0x40], eax
add esp, 0x24
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], str.origin_base::MessagePumpForUI::ProcessPumpReplacementMessage
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
xor ecx, ecx
lea eax, [edi + 0x28]
xchg dword [eax], ecx
test bl, bl
je 0x50a847
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
lea eax, [esp + 0x24]
mov ecx, edi
push eax
call fcn.0050a430
mov bl, al
cmp dword [esp + 0x10], 0
je 0x50a873
mov ecx, dword [esp + 0x14]
cmp byte [ecx], 0
je 0x50a873
call fcn.004fb100
push dword [esp + 0x20]
mov ecx, eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.004fa580
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50f360
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5c2b4c]
mov dword [ebp - 4], 0
push esi
push edi
mov edi, ecx
cmp eax, 2
jge 0x50f3c7
mov ecx, 0x5c2b50
call fcn.004f28d0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5c2b4c]
cmp eax, 2
jge 0x50f3c0
mov eax, dword [0x5c2b88]
test eax, eax
jne 0x50f3b0
push 0x50f4f0
mov ecx, 0x5c2b88
call fcn.0051d220
inc dword [0x5c2b7c]
mov dword [0x5c2b4c], 3
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x5bd990]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
mov ecx, eax
test ecx, ecx
jne 0x50f3e2
call fcn.0051d020
mov ecx, eax
mov eax, dword [0x5c2b8c]
cmp dword [ecx + eax*4], 0
jne 0x50f41f
push 0x70
call fcn.00539d85
add esp, 4
mov ecx, eax
push edi
call fcn.0050f130
mov ecx, dword [0x5bd990]
mov edi, eax
push ecx
call esi
mov ecx, eax
test ecx, ecx
jne 0x50f417
call fcn.0051d020
mov ecx, eax
mov eax, dword [0x5c2b8c]
mov dword [ecx + eax*4], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x50f430
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5c2b88]
push ebx
push esi
push edi
test eax, eax
jne 0x50f440
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x5bd990]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x50f459
call fcn.0051d020
mov ecx, eax
mov eax, dword [0x5c2b8c]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x50f4e9
mov ecx, 0x5c2b50
xor edi, edi
xor ebx, ebx
call fcn.004f28d0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x5c2b70]
test ecx, ecx
je 0x50f499
mov eax, dword [ecx + 4]
mov edi, ecx
mov dword [0x5c2b70], eax
mov dword [ecx + 4], ebx
jmp 0x50f4a6
mov ebx, dword [0x5c2b84]
inc ebx
mov dword [0x5c2b84], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x50f4c5
push 0x70
call fcn.00539d85
add esp, 4
mov ecx, eax
push ebx
call fcn.0050f1f0
mov edi, eax
mov ecx, dword [0x5bd990]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x50f4df
call fcn.0051d020
mov ecx, eax
mov eax, dword [0x5c2b8c]
mov dword [ecx + eax*4], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x512e70
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5bd990]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x512e8a
call fcn.0051d020
mov ecx, eax
mov eax, dword [0x5c2bd0]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x512ed6
push 0xc
call fcn.00539d85
mov esi, eax
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [0x5bd990]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x512ecb
call fcn.0051d020
mov ecx, dword [0x5c2bd0]
mov dword [eax + ecx*4], esi
mov eax, esi
pop esi
ret
Function at 0x514410
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
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
shl ecx, 3
mov dword [ebp - 8], ecx
add ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
cmp esi, eax
je 0x51447e
mov esi, dword [ecx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x51447e
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x51449e
cmp esi, eax
jne 0x514472
mov eax, dword [ebx + 4]
push 0x18
mov edi, dword [eax]
mov eax, dword [edi + 4]
mov dword [ebp - 4], eax
call fcn.00539d85
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x5144b0
jmp 0x51456d
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ecx + 4]
mov dword [ecx], edi
test edx, edx
je 0x5144be
mov eax, dword [ebp - 4]
mov dword [edx], eax
lea eax, [ecx + 8]
test eax, eax
je 0x5144d1
mov edx, dword [ebp + 0xc]
movups xmm0, xmmword [edx]
lea edx, [ecx + 4]
movups xmmword [eax], xmm0
mov eax, 0xaaaaaa9
sub eax, dword [ebx + 8]
cmp eax, 1
jb 0x514572
inc dword [ebx + 8]
mov dword [edi + 4], ecx
mov eax, dword [edx]
mov dword [eax], ecx
mov edi, dword [ebx + 4]
mov edi, dword [edi]
mov eax, dword [edi]
cmp esi, eax
je 0x514518
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 ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 8]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x514532
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [edx + eax + 4], edi
jmp 0x514554
cmp eax, esi
jne 0x51453a
mov dword [ecx], edi
jmp 0x514554
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x514554
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.004fc630
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
call fcn.0053fbe1
push str.list_T__too_long
call fcn.00538c53
int3
Function at 0x51a600
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.0053bcd0
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x51a638
mov byte [esi + 8], 1
call ebx
jmp 0x51a63e
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x51a65a
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x51a610
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x51af20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x5b46a4]
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], 0x5aea1c
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push esi
mov byte [ecx], 0
call fcn.004e2420
push 0x7d0
lea eax, [edi + 0x20]
mov dword [edi + 0x1c], 0
push eax
mov dword [edi], 0x5aea5c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
cmp dword [esi + 0x14], 0x10
jb 0x51af81
mov ecx, dword [esi]
jmp 0x51af83
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.005022a0
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x74]
call fcn.005023c0
push dword [ebp - 0x70]
push dword [ebp - 0x74]
call fcn.0051b9c0
add esp, 8
lea ecx, [edi + 0x38]
push edx
push eax
call fcn.0051f300
push 0
push 0
lea ecx, [edi + 0x68]
call fcn.0051f300
mov ecx, dword [ebp - 8]
mov eax, edi
mov dword [edi + 0x68], 0x5af098
xor ecx, ebp
pop edi
pop esi
call fcn.0053a230
mov esp, ebp
pop ebp
ret 4
Function at 0x51b580
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5b46a4]
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 0x51b5ac
xor ecx, ecx
jmp 0x51b5c9
cmp byte [edi], 0
jne 0x51b5b5
xor ecx, ecx
jmp 0x51b5c9
mov ecx, edi
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51b5c0
sub ecx, esi
lea eax, [ebp - 0x1c]
mov dword [edx + 4], ecx
push eax
call fcn.004f18f0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x51b5e0
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 0x51b601
inc ecx
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.004e2c50
test esi, esi
jne 0x51b61a
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053a230
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x51b730
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053a5a4
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 0x51b669
cmp byte [edi], 0
jne 0x51b657
xor edi, edi
jmp 0x51b669
lea ecx, [edi + 1]
nop word [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x51b660
sub edi, ecx
lea eax, [ebp - 0x1c]
mov dword [edx + 4], edi
push eax
call fcn.004f18f0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x51b680
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x51b69c
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.004e2c50
push esi
lea ecx, [ebp - 0x1c]
call fcn.004e09b0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004f17a0
mov edi, eax
add esp, 8
cmp ebx, edi
je 0x51b6e7
mov ecx, dword [ebx + 0x14]
cmp ecx, 0x10
jb 0x51b6ce
inc ecx
push ecx
push dword [ebx]
mov ecx, ebx
call fcn.004e2910
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
mov dword [ebx + 0x10], 0
push edi
mov byte [ebx], 0
call fcn.004e2780
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x51b6fc
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.004e2910
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
cmp eax, 8
jb 0x51b723
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.004e2c50
test esi, esi
je 0x51b730
push esi
call fcn.0053a22b
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053a230
mov esp, ebp
pop ebp
ret 8
Function at 0x51ba60
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x5b46a4]
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.005022a0
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x70]
call fcn.005023c0
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call fcn.0051b9c0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.0053a230
mov esp, ebp
pop ebp
ret

Function at 0x51bae0
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 0x51bb50
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 + 0x5aead0]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 2]
xor ecx, dword [edx*4 + 0x5aead0]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 1]
xor ecx, dword [edx*4 + 0x5aead0]
movzx edx, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x5aead0]
sub ebx, 1
jne 0x51baf7
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x51d020
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 [0x5b46a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x5bd990]
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x40c], ebx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x51d0c0
mov edi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_TlsFree]
cmp eax, ebx
je 0x51d06d
mov ebx, eax
mov dword [ebp - 0x40c], ebx
jmp 0x51d09e
cmp byte [0x5c2bfc], 0
jne 0x51d137
int3
mov ecx, ebx
mov edx, 0x5bd990
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
cmp eax, 0xffffffff
je 0x51d0c0
push ebx
call esi
mov ebx, dword [0x5bd990]
mov dword [ebp - 0x40c], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x51d0d5
cmp byte [0x5c2bfc], 0
jne 0x51d145
int3
push 0x400
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.0053bcd0
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x400
call fcn.0053a5a4
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.0053a230
mov esp, ebp
pop ebp
ret
push 1
call fcn.00549dc3
push 1
call fcn.00549dc3
push 1
call fcn.00549dc3
int3
Function at 0x51d150
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x5b46a4]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x5bd990]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.0053a22b
add esp, 4
mov edi, 0x100
nop word [eax + eax]
mov esi, dword [0x5c2c24]
xor dl, dl
test esi, esi
jle 0x51d1e8
nop dword [eax]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x51d1e3
mov eax, dword [esi*4 + 0x5c24c0]
test eax, eax
je 0x51d1e3
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x51d1c0
dec edi
test edi, edi
jle 0x51d1f1
test dl, dl
jne 0x51d1b0
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret
Function at 0x520e40
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x520e50
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x520e4d
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x520e4d
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete al
ret
Function at 0x52257d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x5b46a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x410], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40c], eax
xor eax, eax
push 0x60
push eax
push esi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x408], eax
call ebx
mov edi, eax
test edi, edi
jne 0x5225e6
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x5225e6
call fcn.0052189e
mov esi, eax
jmp 0x522687
push dword [ebp - 0x40c]
push dword [ebp - 0x410]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x522606
call fcn.0052189e
jmp 0x52267a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x5225ff
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x52262c
mov esi, 0x8007000e
jmp 0x52267c
push eax
lea ecx, [ebp - 0x408]
call fcn.005216c0
cmp dword [ebp - 0x408], 0
je 0x522625
push esi
push dword [ebp - 0x408]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x5225ff
mov eax, dword [ebp - 0x408]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.00522442
mov esi, eax
test edi, edi
je 0x522687
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x5226a0
lea ecx, [ebp - 0x408]
call fcn.00521be9
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053a230
mov esp, ebp
pop ebp
ret 0x10