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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53dd90
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x58c758]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 8], 0
je 0x4a71a4
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x30]
add eax, 8
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0xc]
or edx, 0xf003f
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a717f
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4a7172
cmp dword [ebp - 0x18], 0
jbe 0x4a7172
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
shl ecx, 1
push ecx
call fcn.004b52d3
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
sub edx, 1
mov dword [ebp - 0x28], edx
jmp 0x4a70fd
mov eax, dword [ebp - 0x28]
sub eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x4a7150
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x24]
shl edx, 1
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call fcn.004b0ac0
add esp, 0xc
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4a714e
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.004a7010
jmp 0x4a70f4
jmp 0x4a715f
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004b2096
add esp, 4
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
add eax, 1
jmp 0x4a71a6
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a72b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
jne 0x4a72c9
mov eax, 2
jmp 0x4a7305
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4a72f1
xor eax, eax
jmp 0x4a7305
cmp dword [ebp - 4], 2
jne 0x4a7300
mov eax, 1
jmp 0x4a7305
mov eax, 2
mov esp, ebp
pop ebp
ret 4

Function at 0x4a73f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4a741a
mov eax, dword [ebp - 4]
and eax, 0x10
neg eax
sbb eax, eax
add eax, 1
jmp 0x4a745b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
je 0x4a7451
cmp dword [ebp - 8], 3
je 0x4a7451
cmp dword [ebp - 8], 0x7b
je 0x4a7451
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a7380
add esp, 4
movzx edx, al
test edx, edx
je 0x4a7451
mov dword [ebp - 0xc], 1
jmp 0x4a7458
mov dword [ebp - 0xc], 0
mov al, byte [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x4a78a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x5c
push ebp
mov ebp, dword [esp + 0x68]
test ebp, ebp
je 0x4a794e
mov eax, dword [esp + 0x64]
push edi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a794d
push ebx
lea ecx, [esp + 0xc]
push esi
push ecx
call fcn.004d1db0
push 0x100
call fcn.004a9062
push 0x100
mov esi, eax
push 0
push esi
call fcn.004b0ac0
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x14
push 0
lea edx, [esp + 0x78]
push edx
push 0x100
push esi
push edi
call ebx
test eax, eax
mov eax, dword [esp + 0x74]
je 0x4a791f
test eax, eax
je 0x4a7930
push eax
lea eax, [esp + 0x14]
push esi
push eax
call fcn.004d1b70
add esp, 0xc
jmp 0x4a7903
lea ecx, [esp + 0x10]
push ecx
push ebp
call fcn.004d1c50
push esi
call fcn.004b2811
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x5c
ret

Function at 0x4a7960
Capabilities:
Get file size

Disassembly:
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4a79a6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub eax, dword [esp + 8]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
cmp eax, 0xffffffff
jne 0x4a79aa
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
ret
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
test eax, eax
je 0x4a79a0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret
Function at 0x4a79c0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x254
mov eax, dword [0x58c758]
xor eax, esp
mov dword [esp + 0x250], eax
push esi
mov esi, dword [esp + 0x25c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a79ff
xor eax, eax
pop esi
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.004b0a79
add esp, 0x254
ret
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4a79e7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x20]
mov ecx, dword [esp + 0x254]
pop esi
xor eax, eax
mov eax, dword [esp + 0x20]
xor ecx, esp
call fcn.004b0a79
add esp, 0x254
ret

Function at 0x4a7a40
Capabilities:
Clear file content
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x4020
call fcn.004b0a90
mov eax, dword [0x58c758]
xor eax, esp
mov dword [esp + 0x401c], eax
mov eax, dword [esp + 0x4024]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebp
push esi
mov esi, dword [esp + 0x4034]
push edi
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 3
push SysReAllocStringLen
push eax
mov dword [esp + 0x30], ebp
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x4a7b83
push ebp
push 0x80
push 4
push ebp
push 3
push 0x40000000
push esi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4a7b6c
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4a7b6c
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4a7b6c
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
lea ecx, [esp + 0x14]
push ecx
push 0x4000
lea edx, [esp + 0x38]
push edx
push edi
mov dword [esp + 0x24], ebp
call ebx
cmp eax, ebp
je 0x4a7b27
mov ecx, dword [esp + 0x10]
push ebp
lea eax, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x38]
push edx
push esi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebp
je 0x4a7b31
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x18]
jne 0x4a7b31
cmp dword [esp + 0x10], ebp
je 0x4a7b31
cmp eax, ebp
jne 0x4a7ae3
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea edx, [esp + 0x24]
push edx
push esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4a7b6c
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x1c]
jne 0x4a7b6c
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x20]
jne 0x4a7b6c
mov dword [esp + 0x14], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp esi, 0xffffffff
je 0x4a7b7d
push esi
call edi
mov eax, dword [esp + 0x14]
jmp 0x4a7b85
mov eax, ebp
mov ecx, dword [esp + 0x402c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b0a79
add esp, 0x4020
ret
Function at 0x4a7ba0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4a7c57
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4a7c50
cmp eax, dword [esp + 0x18]
ja 0x4a7c50
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x10], edi
mov edi, edi
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x100
lea edx, [edi + ebx]
push edx
push esi
call ebp
test eax, eax
mov eax, dword [esp + 0x10]
je 0x4a7c13
test eax, eax
je 0x4a7c21
add edi, eax
jmp 0x4a7bf0
test eax, eax
je 0x4a7c1b
add edi, eax
jmp 0x4a7bf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop ebp
pop ebx
test edx, edx
jg 0x4a7c4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
pop edi
pop esi
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a7c77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x4a7e80
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004b0a90
push 0xffffffffffffffff
push 0x53de38
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x58c758]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x100c]
xor edi, edi
cmp byte [0x590d78], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
jne 0x4a7fc8
mov edx, dword [0x590d88]
mov eax, dword [edx + 0xc]
mov ecx, 0x590d88
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
push edi
push ecx
mov byte [ebp - 4], 1
call fcn.004a7c80
add esp, 8
test al, al
jne 0x4a7f31
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a8077
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4a8077
push 0xffe
lea edx, [ebp + 2]
xor ecx, ecx
push edi
push edx
mov word [ebp], cx
call fcn.004b0ac0
mov esi, dword [ebp - 0x14]
lea eax, [ebp]
push eax
push esi
push str._sEntAdminpublish
mov ecx, eax
push 0x7ff
push ecx
call fcn.004b7179
lea edx, [ebp]
push edx
push str._spublish.log
push 0x7ff
push 0x58fd78
call fcn.004b7179
add esp, 0x30
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a7fa1
push esi
push 0x54c850
push 0x7ff
push 0x58fd78
call fcn.004b7179
add esp, 0x10
lea eax, [esi - 0x10]
mov byte [0x590d78], 1
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a7fc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x58fd78
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a7ff8
push 0x58fd78
call fcn.004a79c0
add esp, 4
cmp eax, 0xa00000
jbe 0x4a7ffa
push 0x58fd78
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
push edi
push edi
push 4
push edi
push 1
push 0x40000000
push 0x58fd78
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4a8077
mov byte [ebp - 0x14], 0xff
mov byte [ebp - 0x13], 0xfe
test bl, bl
je 0x4a8039
push edi
lea ecx, [ebp - 0x20]
push ecx
push 2
lea edx, [ebp - 0x14]
push edx
push esi
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push edi
push edi
push esi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [ebp - 0x18]
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4a8050
sub eax, edx
push edi
sar eax, 1
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [eax + eax]
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004b0a79
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
Function at 0x4a80b0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2094
call fcn.004b0a90
mov eax, dword [0x58c758]
xor eax, esp
mov dword [esp + 0x2090], eax
push esi
mov esi, dword [esp + 0x209c]
test esi, esi
je 0x4a81a8
xor eax, eax
push 0xffe
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.004b0ac0
xor edx, edx
push 0x107e
push edx
lea eax, [esp + 0x102a]
push eax
mov word [esp + 0x102c], dx
call fcn.004b0ac0
add esp, 0x18
lea ecx, [esp + 0x20a0]
push ecx
push esi
push 0x7ff
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_wvnsprintfW]
lea ecx, [esp + 4]
xor eax, eax
push ecx
mov word [esp + 0x1016], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x10]
movzx ecx, word [esp + 0xe]
lea edx, [esp + 0x14]
push edx
movzx edx, word [esp + 0x10]
push eax
movzx eax, word [esp + 0x12]
push ecx
movzx ecx, word [esp + 0x12]
push edx
movzx edx, word [esp + 0x14]
push eax
push ecx
push edx
push str._04d__02d__02d__02d:_02d:_02d__s_r_n
lea eax, [esp + 0x1034]
push 0x83f
push eax
call fcn.004b7179
add esp, 0x28
lea edx, [esp + 0x1014]
xor ecx, ecx
push edx
mov word [esp + 0x2096], cx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esp + 0x1014]
push eax
call fcn.004a7e80
add esp, 4
mov ecx, dword [esp + 0x2094]
pop esi
xor ecx, esp
call fcn.004b0a79
add esp, 0x2094
ret

Function at 0x4a81c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x64
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
mov esi, eax
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a8204
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.cannot_open_Source__s_err_d
call fcn.004a80b0
add esp, 0xc
pop edi
xor al, al
pop esi
add esp, 0x64
ret
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.004d3460
push 0x100
call fcn.004a9062
push 0x100
mov esi, eax
push 0
push esi
call fcn.004b0ac0
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x14
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x100
push esi
push edi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x4a824d
test eax, eax
je 0x4a825e
push eax
lea edx, [esp + 0x14]
push esi
push edx
call fcn.004d31f0
add esp, 0xc
jmp 0x4a8231
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.004d32d0
push esi
call fcn.004b2811
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov al, 1
pop esi
add esp, 0x64
ret
Function at 0x4a8fed
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x590e08], 0
push esi
jne 0x4a8f60
call fcn.004a8e86
test eax, eax
je 0x4a8fa3
mov eax, dword [0x590e08]
cmp eax, 1
jne 0x4a8f81
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4a8fa3
pop esi
ret
push eax
call dword [0x590e10]
test eax, eax
jne 0x4a8feb
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4a8fa7
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x590e08]
call dword [0x590e10]
mov edi, eax
test edi, edi
je 0x4a8fcc
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4a8fe8
mov edi, esi
add esi, 0xff0
push edi
push dword [0x590e08]
call dword [0x590e0c]
add edi, 0x10
cmp edi, esi
jb 0x4a8fd4
mov eax, edi
pop edi
pop esi
ret
jmp 0x4a8f4d

Function at 0x4aa5a0
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x4aae20
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x58c758]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov edi, dword [esp + 0x68]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x70]
push ecx
push eax
lea edx, [esp + 0x10]
push edx
mov ecx, esi
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.004aac80
lea eax, [esp + 8]
push eax
push edi
mov ecx, esi
call fcn.004aad40
mov ecx, dword [esp + 0x60]
pop edi
pop esi
xor ecx, esp
call fcn.004b0a79
add esp, 0x5c
ret 0xc
Function at 0x4aaed0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x805c]
mov eax, 0x805c
call fcn.004b0a90
push 0xffffffffffffffff
push 0x53dfa0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x58c758]
xor eax, ebp
mov dword [ebp + 0x8058], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp + 0x8064]
mov eax, dword [ebp + 0x8068]
xor esi, esi
push esi
push esi
push esi
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x10], esi
mov dword [ebp], 0x67452301
mov dword [ebp + 4], 0xefcdab89
mov dword [ebp + 8], 0x98badcfe
mov dword [ebp + 0xc], 0x10325476
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4aaf70
push 0x54d058
push esi
push 0x1ae
push str..QHMD5.cpp
call fcn.004aa270
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
lea edx, [ebp + 0x58]
push edx
push edi
call ebx
test eax, eax
jne 0x4aafa4
push 0x54d034
push eax
push 0x1b1
push str..QHMD5.cpp
call fcn.004aa270
add esp, 0x10
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x4aafbc
push esi
lea eax, [ebp + 0x58]
push eax
lea ecx, [ebp]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.004aac80
cmp esi, 0x8000
je 0x4aaf76
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp]
push edx
push eax
call fcn.004aad40
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8058]
xor ecx, ebp
call fcn.004b0a79
add ebp, 0x805c
mov esp, ebp
pop ebp
ret 8
Function at 0x4ab1b0
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x4ab1e2
xor ecx, ecx
jmp 0x4ab1ee
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
mov esi, ecx
test ecx, ecx
je 0x4ab2a1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, dword [esi]
cmp dword [esp + 0x14], eax
jne 0x4ab214
mov dword [esp + 0x10], esi
jmp 0x4ab274
push eax
push 1
push 0x40
call ebx
test eax, eax
jne 0x4ab26d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4ab260
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x4ab274
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4ab274
push 0x54d0e8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4ab274
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x4ab297
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x4ab206
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
test eax, eax
jne 0x4ab2b5
mov ecx, dword [edi]
add ecx, 8
call fcn.004ab030
test eax, eax
je 0x4ab2b5
mov edx, dword [esp + 0xc]
mov dword [eax], edx
pop edi
pop esi
add esp, 8
ret
Function at 0x4ab2d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53dff0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x58c758]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
jne 0x4ab31c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x4ab329
mov dword [ebp - 0x14], ebx
jmp 0x4ab33b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x4ab3d5
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, ebx
je 0x4ab308
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4ab308
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004ab1b0
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
jne 0x4ab378
push 0x5850f4
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 1
call fcn.004b0d47
mov eax, dword [esi]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x4ab38e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x4ab3c4
push 0x5850f4
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 4
call fcn.004b0d47
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4ab3b8
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx]
push eax
add ecx, 8
call fcn.004ab110
mov eax, 0x4ab3be
ret
mov esi, dword [esi]
mov eax, dword [esi]
test eax, eax
je 0x4ab3d3
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ab3f0
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x53e01b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58c758]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.004b0ac0
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x18], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x4ab48b
push 0x5850f4
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.004b0d47
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x4ab500
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov ecx, 0x59103c
jmp fcn.004ab2d0