joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1036ceb0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1036d06a
pushal
mov esi, section..data
lea edi, [esi - 0x1e2000]
push edi
or ebp, 0xffffffff
jmp 0x1036ceda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1036cee1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1036ced0
mov eax, 1
add ebx, ebx
jne 0x1036cef3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1036cf04
jne 0x1036cf23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1036cf23
dec eax
add ebx, ebx
jne 0x1036cf10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1036cee8
add ebx, ebx
jne 0x1036cf1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1036cf75
xor ecx, ecx
sub eax, 3
jb 0x1036cf3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1036cfaa
sar eax, 1
mov ebp, eax
jmp 0x1036cf46
add ebx, ebx
jne 0x1036cf46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1036cf14
inc ecx
add ebx, ebx
jne 0x1036cf54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1036cf14
add ebx, ebx
jne 0x1036cf61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1036cf56
jne 0x1036cf72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1036cf56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1036cf94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1036cf86
jmp 0x1036ced6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1036cf94
add edi, ecx
jmp 0x1036ced6
pop esi
lea edi, [esi + 0x35e000]
mov eax, dword [edi]
or eax, eax
je 0x1036cffc
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x371d80]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x371e98]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1036cfb1
mov ecx, edi
jns 0x1036cfe0
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x371e9c]
or eax, eax
je 0x1036cff6
mov dword [ebx], eax
add ebx, 4
jmp 0x1036cfce
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1036d02d
cmp al, 0xef
ja 0x1036d020
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1036d002
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1036d00f
mov ebp, dword [esi + 0x371ea0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1036d061
sub esp, 0xffffff80
jmp 0x1012737c
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x40c7d0
nop
mov ecx, 0x6ead1592
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data_1
mov ebx, 0x42f314
nop
mov ecx, 0x581e1863
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401bf4
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.00403dc0
mov dword [esp], eax
mov eax, dword [0x40b3f8]
push eax
push eax
call fcn.00405eb2
lea ecx, [esp + 8]
pop edx
call fcn.004030f0
push dword [esp]
push 0
push 0x40a00d
push dword [esp + 0x10]
call sub.KERNEL32.DLL_GetTempFileNameA
mov eax, dword [0x40b3f8]
push eax
push eax
push dword [esp + 8]
call fcn.00403e50
lea ecx, [0x40b170]
pop edx
call fcn.004030f0
push dword [esp]
call fcn.00403e30
push dword [0x40b170]
call fcn.00405ea0
push dword [0x40b170]
call fcn.00405f13
mov eax, dword [0x40b3f8]
push eax
push eax
call fcn.00405dd5
lea ecx, [0x40b168]
pop edx
call fcn.004030f0
mov eax, dword [esp + 0x14]
call fcn.00403ea0
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x401d02
mov ebx, dword [esp + 0x18]
inc ebx
mov eax, ebx
call fcn.00403ea0
mov ebx, eax
cmp ebx, 1
jne 0x401cdb
push dword [0x40b168]
call sub.SHLWAPI.dll_PathQuoteSpacesA
push dword [0x40b3f8]
mov edx, str.__
call fcn.004074f0
mov edx, dword [0x40b168]
call fcn.004074f0
lea ecx, [0x40b16c]
pop edx
call fcn.004030f0
mov edx, dword [0x40b170]
push dword [0x40b3f8]
call fcn.004074f0
lea ecx, [0x40b168]
pop edx
call fcn.004030f0
mov dword [esp + 0xc], 2
jmp 0x401d14
mov ebx, 1
cmp ebx, dword [esp]
jne 0x401d14
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
mov eax, ebx
call fcn.00403ea0
mov dword [0x40b160], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
mov eax, ebx
call fcn.00403ea0
mov dword [0x40b164], eax
mov eax, 1
jmp 0x401d47
push dword [esp + 4]
call fcn.00407550
add esp, 0xc
pop ebx
ret 4
Function at 0x4020c9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.00403100
push 0xa
push dword [esp + 4]
push dword [esp + 0x14]
call sub.KERNEL32.DLL_FindResourceA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x40211a
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.DLL_LoadResource
mov dword [0x40b174], eax
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x40b1b0], eax
mov eax, dword [esp + 4]
jmp 0x402122
push dword [esp]
call fcn.00407550
add esp, 8
ret 8

Function at 0x402779
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x14
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402780
mov edx, dword [esp + 0x5c]
lea ecx, [esp]
call fcn.00403100
mov edx, dword [esp + 0x60]
lea ecx, [esp + 4]
call fcn.00403100
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
call fcn.00403100
lea eax, [esp + 0xc]
lea ebp, [esp + 0xc]
mov dword [ebp], 0x3c
mov dword [ebp + 4], 0x140
mov dword [ebp + 0x1c], 0
mov eax, str.open
mov dword [ebp + 0xc], eax
mov eax, dword [esp]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 8]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 4]
mov dword [ebp + 0x18], eax
lea eax, [esp + 0xc]
push eax
call sub.SHELL32.dll_ShellExecuteExA
mov dword [esp + 0x48], eax
push 0x19
call sub.KERNEL32.DLL_Sleep
lea eax, [esp + 0x4c]
push eax
lea ebp, [esp + 0x10]
push dword [ebp + 0x38]
call sub.KERNEL32.DLL_GetExitCodeProcess
and eax, eax
je 0x402827
mov ebx, dword [esp + 0x4c]
cmp ebx, 0x103
je 0x402827
jmp 0x402829
jmp 0x4027fa
mov eax, 1
jmp 0x402832
push dword [esp]
call fcn.00407550
push dword [esp + 4]
call fcn.00407550
push dword [esp + 8]
call fcn.00407550
add esp, 0x50
pop ebx
pop ebp
ret 0xc

Function at 0x4038b5
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x4038cd
push dword [esp + 4]
push 0x40384e
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x40390a
push esi
mov esi, dword [0x40b208]
test esi, esi
je 0x403909
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x403901
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x40b208
call fcn.0040681d
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x4038da
pop edi
pop ebx
pop esi
ret 4
Function at 0x403cd7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExA]
push edi
push 0x64
pop edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call esi
test eax, eax
je 0x403d7b
mov eax, dword [ebp - 0xc]
dec eax
je 0x403d5e
dec eax
jne 0x403d7b
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x403d5a
dec eax
je 0x403d56
dec eax
je 0x403d3c
dec eax
jne 0x403d7b
push 0x46
pop edi
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0xb8], 0x9c
call esi
test eax, eax
je 0x403d7b
cmp byte [ebp - 0x1e], 1
je 0x403d7b
push 0x4b
jmp 0x403d7a
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x403d52
dec eax
je 0x403d4e
dec eax
jne 0x403d7b
push 0x41
jmp 0x403d7a
push 0x3c
jmp 0x403d7a
push 0x32
jmp 0x403d7a
push 0x14
jmp 0x403d7a
push 5
jmp 0x403d7a
cmp dword [ebp - 0x14], 0
je 0x403d78
cmp dword [ebp - 0x14], 0xa
je 0x403d74
cmp dword [ebp - 0x14], 0x5a
jne 0x403d7b
push 0x28
jmp 0x403d7a
push 0x1e
jmp 0x403d7a
push 0xa
pop edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x4045fc
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x40b46c]
call fcn.00406690
mov edi, eax
test edi, edi
je 0x40465e
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x404625
push dword [esp + 0xc]
push edi
call eax
jmp 0x40465e
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.00407750
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.004077f0
pop esi
pop ebx
pop edi
ret 8
Function at 0x405d3c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 9
call esi
test al, al
jns 0x405daa
push 0x11
call esi
test al, al
js 0x405daa
push 0x10
call esi
test al, al
js 0x405daa
push 0x12
call esi
test al, al
js 0x405daa
mov esi, dword [sym.imp.USER32.dll_GetFocus]
push 5
lea eax, [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
push 4
lea eax, [ebp - 8]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x405daa
push eax
push eax
push 0x44e
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test ax, 0x800
je 0x405dce
push str.PB_WindowID
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x405dce
dec eax
push eax
push dword [0x40b474]
call fcn.00406690
mov eax, dword [eax + 8]
jmp 0x405dd0
xor eax, eax
pop esi
leave
ret 4

Function at 0x405f13
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x405f86
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x405f68
lea ecx, [eax - 1]
mov dl, byte [ecx]
cmp dl, 0x20
je 0x405f66
cmp dl, 0x5c
je 0x405f66
cmp dl, 0x2f
jne 0x405f72
mov eax, ecx
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x405f52
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
jmp 0x405f88
xor eax, eax
leave
ret 4

Function at 0x405f90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x405fc5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x406250
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
test esi, esi
mov dword [esp + 4], eax
je 0x406299
cmp byte [esi], al
je 0x406299
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40b484]
push eax
push ecx
call fcn.00406690
test eax, eax
je 0x4062c7
cmp dword [eax + 4], 0
mov ecx, esi
push edi
lea edi, [ecx + 1]
je 0x4062a0
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x406285
sub ecx, edi
push ecx
push esi
push eax
call fcn.00406330
pop edi
pop esi
pop ecx
ret 8
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4062a0
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
sub ecx, edi
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8
Function at 0x4062d0
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov dword [esp + 4], eax
je 0x406329
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x406328
mov eax, dword [esp + 0x10]
mov ecx, dword [0x40b484]
push eax
push ecx
call fcn.00406690
test eax, eax
je 0x406324
cmp dword [eax + 4], 0
je 0x406312
push esi
push edi
push eax
call fcn.00406330
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc

Function at 0x406330
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x406365
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x4063de
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
sub ecx, 1
je 0x4063cb
sub ecx, 1
je 0x4063b6
sub ecx, 2
je 0x4063a3
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.00405f90
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x40640b
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x406960
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
or esi, 0xffffffff
test eax, eax
je 0x406b15
push ebx
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
je 0x406b14
mov eax, dword [0x40b13c]
push ebp
push 0x1000
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x406b0c
push edi
nop
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x1000
push ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [esp + 0x1c]
cmp edx, 8
mov eax, ebp
mov edi, edx
jb 0x406ace
mov ebp, edx
shr ebp, 3
lea ebx, [ebx]
movzx ebx, byte [eax]
xor ebx, esi
and ebx, 0xff
add eax, 1
mov ecx, esi
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
add eax, 1
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
add eax, 1
sub edi, 8
sub ebp, 1
mov esi, ecx
jne 0x4069f0
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test edi, edi
je 0x406aef
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x4090e8]
add eax, 1
sub edi, 1
jne 0x406ad2
cmp edx, 0x1000
je 0x4069c0
mov edx, dword [0x40b13c]
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebp
pop ebx
mov eax, esi
not eax
pop esi
add esp, 8
ret 4

Function at 0x406b20
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x100054e0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100181d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [0x100181dc]
mov dword [ebp - 0x18], esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x10005522
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
jmp 0x100055b2
push ebx
push dword [0x100181dc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [eax + 0x40]
mov eax, dword [ebp + 0xc]
sub eax, edi
je 0x1000555b
sub eax, 1
je 0x1000554f
sub eax, 1
jne 0x100055af
push dword [ebp + 8]
mov ecx, ebx
call fcn.100066b0
jmp 0x10005557
push dword [ebp + 8]
call fcn.1000661e
mov edi, eax
jmp 0x100055af
push 1
push 0x10
push esi
mov esi, dword [0x100186d0]
mov ecx, esi
call dword [0x10019344]
call esi
mov esi, eax
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10006495
push eax
call sym.OLETHK32.dll_TransformHRESULT_3216
mov esi, dword [0x100186d0]
mov edi, eax
push 1
push 0x10
push dword [ebp - 0x18]
mov ecx, esi
call dword [0x10019344]
call esi
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100165d0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10005c7f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x28
xor esi, esi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
test eax, eax
je 0x10005ca3
push ecx
mov ecx, eax
call fcn.1000753f
mov dword [ebp - 4], eax
jmp 0x10005ca6
mov dword [ebp - 4], esi
push 0x28
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
test eax, eax
je 0x10005cbe
push ecx
mov ecx, eax
call fcn.1000753f
mov ebx, eax
jmp 0x10005cc0
mov ebx, esi
push 0x28
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
test eax, eax
je 0x10005cd8
push ecx
mov ecx, eax
call fcn.1000753f
mov edi, eax
jmp 0x10005cda
mov edi, esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x10005d43
test ebx, ebx
je 0x10005d33
test edi, edi
je 0x10005d33
push 0x24
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
test eax, eax
je 0x10005d1b
xor ecx, ecx
mov dword [eax + 8], esi
inc ecx
mov dword [eax + 0x1c], esi
mov dword [eax + 4], ecx
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 0x20], esi
mov esi, eax
mov dword [eax], 0x10001008
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x18], edi
test esi, esi
je 0x10005d30
push dword [0x100181dc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [eax + 0x40], esi
jmp 0x10005d67
mov eax, dword [ebp - 4]
mov ecx, eax
call fcn.1001209d
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
je 0x10005d55
mov ecx, ebx
call fcn.1001209d
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
je 0x10005d67
mov ecx, edi
call fcn.1001209d
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006495
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100181d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push dword [0x100181dc]
xor edi, edi
mov ebx, ecx
and dword [eax], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [ebp + 0xc]
test dword [eax + 0x44], 0x1000000
je 0x100064e5
mov edx, 0x10003100
xor ecx, ecx
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x100064e5
inc ecx
cmp ecx, 4
jne 0x100064d2
mov esi, 0x10003110
mov ecx, esi
mov dword [ebp - 0x10], esi
call fcn.10007e86
mov dword [ebp - 0x14], eax
shr eax, 0x10
mov dword [ebp - 0x18], eax
test ax, ax
je 0x10006513
push esi
mov ecx, ebx
call fcn.1000603c
test eax, eax
jne 0x10006513
mov eax, 0x8007000e
jmp 0x1000660b
mov esi, dword [0x100186d0]
mov ecx, esi
push 1
push 0x24
push dword [ebp + 8]
call dword [0x10019344]
call esi
mov edx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
test dl, 2
je 0x1000653d
mov eax, dword [eax]
test dl, 0x10
je 0x1000655a
cmp dword [ebp - 0x14], edi
jne 0x1000655a
mov esi, dword [ebp + 8]
push esi
call fcn.1000661e
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x100065f8
mov esi, dword [eax]
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0x10]
mov ecx, dword [esi]
push eax
call dword [0x10019344]
call dword [esi]
mov edi, eax
test edi, edi
js 0x100065f8
cmp dword [ebp - 8], 0
je 0x100065f3
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x10006595
mov al, byte [ecx + 4]
and al, 2
movzx eax, al
neg eax
sbb eax, eax
not eax
and ecx, eax
lea eax, [ebp - 0xc]
mov dword [ebx + 8], 2
push eax
push dword [ebp - 0x14]
push ecx
push dword [ebp - 8]
mov ecx, ebx
push 0
call fcn.100061bb
test eax, eax
je 0x100065d5
test byte [ebp - 0xc], 3
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
je 0x100065da
cmp word [ebp - 0x18], 0
je 0x100065da
push eax
mov ecx, ebx
call fcn.100066b0
mov edi, 0x80004002
jmp 0x100065da
mov edi, 0x8007000e
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10019344]
call esi
and dword [ebx + 8], 0
jmp 0x100065f8
mov edi, 0x80004002
cmp word [ebp - 0x18], 0
je 0x10006609
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.1000606a
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100165d0
mov esp, ebp
pop ebp
ret 0xc