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

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x4210d7
cmp dword [esi + 0x14], 1
jne 0x42101b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x421098
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x421083
dec eax
je 0x42106c
sub eax, 2
je 0x421057
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.00420c10
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x4210c5
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x421041
xor eax, eax
pop esi
add esp, 0xc
ret 0xc

Function at 0x42203d
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4220b2
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x42205b
mov esi, 0x42b054
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
lea ebp, [eax*2 + 2]
push ebp
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4220a9
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4220a9
push ebp
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov edi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
ret 4
Function at 0x423e80
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x423eb2
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423ead
cmp dword [esp + 0xc], esi
je 0x423ec9
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret

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

Disassembly:
push edi
push dword [0x432f7c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x427ee9
push esi
push dword [0x432f78]
push 8
push dword [0x432438]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x432f7c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x432f74]
jmp 0x427ed9
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x427ed7
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x427ec7
push edi
push 0x427e26
call fcn.00429a57
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x427ef3
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x427f09
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x432f78]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x427f40
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x432438]
mov dword [0x432f7c], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x432f7c]
call ebx
mov eax, dword [0x432f78]
mov edi, eax
add eax, esi
push eax
push dword [0x432f7c]
mov dword [0x432f78], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x432438]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x432f7c]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x427f80
test ebx, ebx
je 0x427fa1
push 0x14
push 0x432f74
call fcn.004287fb
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x427fa1
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4288f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4303e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x428936
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x433208]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x428957
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x433208]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00429010
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x4289e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4303e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_wcsncpy
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [edx + 8], eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x428af0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4303e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret

Function at 0x428b50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4303e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret
Function at 0x428d00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4303e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x428d24
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x428d74
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x433208]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x428dbc
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x428dbc
cmp dword [ebp - 8], 0x100000
jge 0x428d90
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x433208]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x428de0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4303e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x428e10
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4303e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x428e4e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x428e4e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x428e50
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x429060
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4303e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x429440
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4303e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x429a57
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x432fbc], 0
push ebx
push esi
mov esi, 0x432fc4
jne 0x429a83
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x432fdc], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x432fbc], 1
push dword [0x432fdc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x429b20
push 0x14
push 8
push dword [0x432438]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x429b4a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x432fc0]
test eax, eax
je 0x429ac5
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x432fc0], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x429b4f
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x432fdc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x432438]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x429b4a
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x40a9b5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40a9c4
pop dword [ebp - 8]
mov eax, 0x9cf9a3d9
add eax, 0x634705eb
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x51c01
push 0
mov eax, 0xdaf9631c
sub eax, 0xdab4b06c
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x32df1afc
add ecx, 0xcd2131ac
mov edx, eax
mov edi, 0xf2cbd559
add edi, 0xd7cb8a7
add edi, dword [ebp - 8]
mov esi, 0xc67dd991
sub esi, 0x58719251
mov dword [ebp - 4], 0x58fbb4a1
mov ebx, dword [edi]
mov dword [ebp - 4], 0x3cf21cbe
add ebx, esi
add dword [ebp - 4], ebx
mov dword [edx], ebx
xor dword [ebp - 4], 0x90ddaaea
add edx, 0xc61877f9
add edx, 0x39e7880b
add edi, 0xf20ade72
sub edi, 0xf20ade6e
loop 0x40aa23
add eax, 0x12573
mov ebx, eax
add eax, 0x1d78c3f5
sub eax, 0x1d78c3f0
mov ecx, 0xbf8cfd3f
add ecx, 0x40b302c1
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x402c00
pop dword [ebp - 0x30]
mov eax, 0xc0c9e053
add eax, 0x3f764bad
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x5837f60f
sub dword [ebp - 0x40], 0x9e5b0c4
mov dword [ebp - 0x3c], 0x213d64e4
add dword [ebp - 0x3c], 0x10f5e761
mov dword [ebp - 0x38], 0xda87b64e
add dword [ebp - 0x38], 0x71c48de0
mov dword [ebp - 0x34], 0x1e827007
add dword [ebp - 0x34], 0xe17d8ff9
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xf1ac117
add dword [ebp - 0x40], 0x6557a83f
mov dword [ebp - 0x3c], 0x5b73277
sub dword [ebp - 0x3c], 0xc44ad102
mov dword [ebp - 0x38], 0x138a571d
sub dword [ebp - 0x38], 0xb01aeab1
mov dword [ebp - 0x34], 0x401aab53
add dword [ebp - 0x34], 0xbfe554ad
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x56c8f68a
sub eax, 0x568875b6
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x34162
push 0
call eax
mov ecx, 0xf897699a
add ecx, 0x768d3fd
mov ebx, eax
mov esi, 0x9434f773
add esi, 0x6c0c188d
add esi, dword [ebp - 0x30]
mov edx, 0xa8b1e735
add edx, 0x9f1a4b5
sub dword [ebp - 0x24], 0xb2b49615
mov edi, dword [esi]
sub dword [ebp - 8], ebx
xor edi, edx
add dword [ebp - 0x1c], ecx
mov dword [ebx], edi
add dword [ebp - 0x20], ebx
add ebx, 0x684d23cf
add ebx, 0x97b2dc35
add esi, 0xb6a807b5
sub esi, 0xb6a807b1
loop 0x402d1d
add eax, 0x693d8c23
sub eax, 0x693ca2f4
mov ebx, eax
add eax, 0x735a0c48
sub eax, 0x735a0c43
mov ecx, 0x33a440eb
sub ecx, 0x336440eb
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x406043
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406067
xor eax, eax
test eax, eax
je 0x406079
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406079
xor ecx, ecx
jmp 0x40607c
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406120
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422af4], 0
push esi
jne 0x406157
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406131
mov dword [ecx*4 + 0x422af0], eax
inc ecx
cmp ecx, 0x100
jl 0x40612c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406188
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422af0]
xor eax, esi
inc ecx
dec edx
jne 0x40616a
pop edi
not eax
pop esi
ret 0xc

Function at 0x100023dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x100023eb
pop dword [ebp - 4]
mov eax, 0xcada40a4
add eax, 0x4525e347
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x1283ac20
sub dword [ebp - 0x14], 0xc43166d5
mov dword [ebp - 0x10], 0x22571b95
add dword [ebp - 0x10], 0xfdc30b0
mov dword [ebp - 0xc], 0x9ff18d47
add dword [ebp - 0xc], 0xac5ab6e7
mov dword [ebp - 8], 0x59785ac
add dword [ebp - 8], 0xfa687a54
lea eax, [ebp - 0x14]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0xf3abbceb
add dword [ebp - 0x14], 0x80c6ac6b
mov dword [ebp - 0x10], 0x12d57b39
add dword [ebp - 0x10], 0x2e96e63c
mov dword [ebp - 0xc], 0x71c2630e
sub dword [ebp - 0xc], 0xe52f6a2
mov dword [ebp - 8], 0x451591e4
add dword [ebp - 8], 0xbaea6e1c
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, 0x3883f589
sub eax, 0x28835581
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x375ef
push 0
call eax
mov ecx, 0x7513264d
sub ecx, 0x7512db3b
xor esi, esi
add esi, eax
mov edi, 0x66f9613e
sub edi, 0x56f8693e
add edi, dword [ebp - 4]
mov edx, 0x5b942e5d
mov ebx, dword [edi]
xor ebx, edx
mov dword [esi], ebx
add esi, 4
add edi, 0x81bbecc6
add edi, 0x7e44133e
loop 0x10002504
add eax, 0xdda42235
add eax, 0x225cfce6
mov ebx, eax
add eax, 5
mov ecx, 0x5a8c1eff
sub ecx, 0x4a8c1eff
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x401ab0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4e2010
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x51f4f4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov ebx, ecx
mov dword [esp + 0x24], 1
mov byte [esp + 0x17], 0
mov edi, 0x20019
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x506588
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test esi, esi
je 0x401b26
cmp esi, 0xffffffff
je 0x401b26
test eax, eax
je 0x401b26
push 0
push esi
call eax
cmp dword [esp + 0x18], 1
jne 0x401b39
cmp byte [esp + 0x70], 0
jne 0x401b39
mov edi, 0x20119
mov eax, dword [esp + 0x34]
mov esi, 8
cmp dword [esp + 0x48], esi
jae 0x401b4c
lea eax, [esp + 0x34]
lea ecx, [esp + 0x18]
push ecx
push edi
push 0
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401ba4
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x64], esi
jae 0x401b6e
lea eax, [esp + 0x50]
lea edx, [esp + 0x6c]
push edx
mov edx, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x70]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov bl, 1
test eax, eax
je 0x401b91
mov bl, byte [esp + 0x17]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401ba8
mov bl, byte [esp + 0x17]
cmp dword [esp + 0x48], esi
jb 0x401bbb
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004129b1
add esp, 4
xor edx, edx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], dx
cmp dword [esp + 0x64], esi
jb 0x401be5
mov eax, dword [esp + 0x50]
push eax
call fcn.004129b1
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret