joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002aac0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1002aaf0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1002aaf5
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x100399e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
test eax, eax
jne 0x100399ff
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
jmp 0x10039a2f
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + eax]
xor edx, dword [ebp + 0xc]
imul eax, edx, 0x1000193
push eax
mov ecx, 1
shl ecx, 0
add ecx, dword [ebp + 8]
push ecx
call fcn.100399e0
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1003db00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100678cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 0
jmp 0x1003db54
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x24]
jge 0x1003dc0a
mov edx, dword [ebp - 0x18]
add edx, 1
and edx, 0x800000ff
jns 0x1003db76
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + eax*4]
and edx, 0x800000ff
jns 0x1003db95
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x10]
mov edx, dword [esi + edx*4]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.1001b9d0
movsx ecx, byte [eax]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x10]
add edx, dword [esi + eax*4]
and edx, 0x800000ff
jns 0x1003dbf3
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [ebp - 0x10]
xor ecx, dword [eax + edx*4]
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x14]
mov byte [edx + 0x400], cl
jmp 0x1003db4b
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov byte [eax + 0x400], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x400
push ecx
mov ecx, dword [ebp + 8]
call fcn.10015fb0
mov edx, dword [ebp - 0x20]
or edx, 1
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10019790
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x20
Function at 0x100412e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
call fcn.10026f60
movzx eax, al
test eax, eax
je 0x100413e6
push 0x104
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0
push 0
call fcn.100123e0
add esp, 8
call eax
xor edx, edx
mov byte [ebp - 1], dl
lea ecx, [ebp - 1]
call fcn.100240e0
mov ecx, eax
call fcn.1001c9f0
push eax
lea eax, [ebp - 0x124]
push eax
push 0
push 0
call fcn.100121d0
add esp, 8
call eax
test eax, eax
je 0x100413dd
call fcn.1002ebb0
test eax, eax
je 0x100413d4
push str.xX806p940gBr
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x100277c0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 2]
call fcn.100044c0
mov dword [ebp - 8], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
call fcn.100122f0
add esp, 8
call eax
mov edx, dword [ebp - 8]
push edx
push 0
push 0
call fcn.10012590
add esp, 8
call eax
jmp 0x100413db
mov eax, 1
jmp 0x100413ef
jmp 0x100413e4
mov eax, 1
jmp 0x100413ef
jmp 0x100413ed
mov eax, 1
jmp 0x100413ef
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10041400
Capabilities:
Allocate thread local storage
Print debug messages
Resume thread
Suspend thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
cmp dword [ebp + 8], 0
jne 0x10041430
cmp dword [ebp + 0xc], 0
jne 0x10041430
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
cmp dword [ebp + 8], 0
jne 0x1004144f
cmp dword [ebp + 0xc], 0
je 0x1004144f
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp + 8], 0
je 0x10041475
cmp dword [ebp + 0xc], 0
jne 0x10041475
push 0x1388
push 2
call dword [sym.imp.KERNEL32.dll_Beep]
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x100415c5
cmp dword [ebp + 8], 0
je 0x10041499
cmp dword [ebp + 0xc], 0
je 0x10041499
push 1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SleepEx]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
jmp 0x100415c5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push str.aivYbNCRq66E
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.10026f60
movzx eax, al
test eax, eax
je 0x100415be
push 0x104
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0
push 0
call fcn.100123e0
add esp, 8
call eax
xor edx, edx
mov byte [ebp - 1], dl
lea ecx, [ebp - 1]
call fcn.100245e0
mov ecx, eax
call fcn.1001c970
push eax
lea eax, [ebp - 0x124]
push eax
push 0
push 0
call fcn.100121d0
add esp, 8
call eax
test eax, eax
je 0x100415b5
call fcn.1002ebb0
test eax, eax
je 0x100415ac
push str.1mp5CcndVYcF
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x100277c0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 2]
call fcn.100044c0
mov dword [ebp - 8], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
call fcn.100122f0
add esp, 8
call eax
mov edx, dword [ebp - 8]
push edx
push 0
push 0
call fcn.10012590
add esp, 8
call eax
jmp 0x100415b3
mov eax, 1
jmp 0x100415c7
jmp 0x100415bc
mov eax, 1
jmp 0x100415c7
jmp 0x100415c5
mov eax, 1
jmp 0x100415c7
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x100415f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
call fcn.10026f60
movzx eax, al
test eax, eax
je 0x10041738
push 0x104
lea ecx, [ebp - 0x130]
push ecx
push 0
push 0
push 0
call fcn.100123e0
add esp, 8
call eax
xor edx, edx
mov byte [ebp - 1], dl
lea ecx, [ebp - 1]
call fcn.10024cb0
mov ecx, eax
call fcn.1001cab0
push eax
lea eax, [ebp - 0x130]
push eax
push 0
push 0
call fcn.100121d0
add esp, 8
call eax
test eax, eax
je 0x10041736
call fcn.1002ebb0
test eax, eax
je 0x1004172f
mov dword [ebp - 0xc], 0x410
lea ecx, [ebp - 0x540]
mov dword [ebp - 0x10], ecx
xor edx, edx
mov byte [ebp - 2], dl
lea ecx, [ebp - 2]
call fcn.10023500
mov ecx, eax
call fcn.1001c570
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 3]
call fcn.100055f0
lea eax, [ebp - 0x540]
push eax
call fcn.1002aac0
add esp, 4
test eax, eax
jne 0x100416ba
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0x100277c0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 4]
call fcn.100044c0
mov dword [ebp - 8], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
call fcn.100122f0
add esp, 8
call eax
mov edx, dword [ebp - 8]
push edx
push 0
push 0
call fcn.10012590
add esp, 8
call eax
jmp 0x10041736
mov eax, 1
jmp 0x10041741
jmp 0x1004173f
mov eax, 1
jmp 0x10041741
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10041750
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
call fcn.10026f60
movzx eax, al
test eax, eax
je 0x10041856
push 0x104
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0
push 0
call fcn.100123e0
add esp, 8
call eax
xor edx, edx
mov byte [ebp - 1], dl
lea ecx, [ebp - 1]
call fcn.10022770
mov ecx, eax
call fcn.1001ca30
push eax
lea eax, [ebp - 0x124]
push eax
push 0
push 0
call fcn.100121d0
add esp, 8
call eax
test eax, eax
je 0x1004184d
call fcn.1002ebb0
test eax, eax
je 0x10041844
push str.v3sJZzxqlAOs
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x100277c0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 2]
call fcn.100044c0
mov dword [ebp - 8], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
call fcn.100122f0
add esp, 8
call eax
mov edx, dword [ebp - 8]
push edx
push 0
push 0
call fcn.10012590
add esp, 8
call eax
jmp 0x1004184b
mov eax, 1
jmp 0x1004185f
jmp 0x10041854
mov eax, 1
jmp 0x1004185f
jmp 0x1004185d
mov eax, 1
jmp 0x1004185f
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10041fcd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor esi, esi
push eax
mov ebx, 0xf003f
mov dword [ebp - 8], esi
push ebx
push esi
push str.SOFTWARE
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100420ab
push 8
pop ecx
lea edi, [ebp - 0x38]
push 0x208
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x240]
push esi
push eax
call fcn.10041ba3
lea eax, [ebp - 0x38]
push 0xf
push eax
call fcn.10042751
mov eax, dword [ebp + 8]
shr eax, 2
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x240]
push str._s__x_x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
lea eax, [ebp - 4]
push esi
push eax
push esi
push ebx
push esi
push esi
push esi
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100420ab
push dword [ebp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0xc]
push 3
push esi
push 0x1006b548
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x100420ab
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
push 0xf
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
push eax
push 3
push esi
push 0x1006b550
push dword [ebp - 4]
call ebx
xor ecx, ecx
inc ecx
test eax, eax
cmove esi, ecx
cmp dword [ebp - 8], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x100420bc
push dword [ebp - 8]
call edi
cmp dword [ebp - 4], 0
je 0x100420c7
push dword [ebp - 4]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100420ce
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
xor esi, esi
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
pop edi
push edi
push esi
push eax
call fcn.10041ba3
add esp, 0xc
mov dword [ebp - 0x5c], edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push 0x8000000
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x100421d3
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.10041fcd
add esp, 0x10
test eax, eax
je 0x100421d3
push 0x2c8
lea eax, [ebp - 0x324]
push esi
push eax
call fcn.10041ba3
lea eax, [ebp - 0x328]
mov dword [ebp - 0x328], 0x1003f
push eax
push dword [ebp - 0xc]
call fcn.10042872
add esp, 0x14
test eax, eax
je 0x100421d3
push ebx
push 0x40
push 0x3000
push esi
mov ebx, 0x1798
push ebx
push esi
push esi
push dword [ebp - 0x10]
call fcn.10042821
add esp, 0x1c
mov edi, eax
or eax, edx
je 0x100421d2
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push ebx
push 0x1007a018
push edx
push edi
push dword [ebp - 0x10]
movlpd qword [ebp - 0x18], xmm0
call fcn.100428ca
add esp, 0x18
test eax, eax
je 0x100421d2
lea eax, [edi + 0xc30]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0xc]
call fcn.1004289f
pop ecx
pop ecx
xor ecx, ecx
inc ecx
test eax, eax
cmovne esi, ecx
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x10042477
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
xor eax, eax
push esi
push edi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
xor edi, edi
push edi
push eax
call fcn.10041ba3
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push 0x8000000
push edi
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1004254e
push 0x2c8
lea eax, [ebp - 0x31c]
push edi
push eax
call fcn.10041ba3
lea eax, [ebp - 0x320]
mov dword [ebp - 0x320], 0x1003f
push eax
push dword [ebp - 0xc]
call fcn.10042872
add esp, 0x14
test eax, eax
je 0x1004254e
push 0x40
push 0x3000
push edi
push dword [ebp + 0x10]
push edi
push edi
push dword [ebp - 0x10]
call fcn.10042821
mov esi, eax
add esp, 0x1c
mov ecx, esi
or ecx, edx
je 0x1004254e
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
push esi
push dword [ebp - 0x10]
call fcn.100428ca
add esp, 0x18
test eax, eax
je 0x1004254e
lea eax, [ebp - 0x320]
mov dword [ebp - 0x268], esi
push eax
push dword [ebp - 0xc]
call fcn.1004289f
pop ecx
pop ecx
test eax, eax
je 0x1004254e
push dword [ebp - 0xc]
call fcn.100427cd
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], edi
je 0x1004255e
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0xc], edi
je 0x10042568
push dword [ebp - 0xc]
call esi
xor eax, eax
pop edi
inc eax
pop esi
leave
ret

Function at 0x1004267a
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
sub esp, 0x208
push esi
push edi
mov edi, dword [eax + 0xc]
add edi, 0xc
mov esi, dword [edi]
jmp 0x100426db
push 0x208
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.10041ba3
push dword [esi + 0x30]
lea eax, [ebp - 0x208]
push eax
call fcn.1004256f
lea eax, [ebp - 0x208]
push eax
call fcn.1004264c
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.100425d9
add esp, 0x20
test eax, eax
jne 0x100426e5
mov esi, dword [esi]
cmp esi, edi
jne 0x10042695
xor eax, eax
pop edi
pop esi
leave
ret
mov eax, dword [esi + 0x18]
jmp 0x100426e1

Function at 0x100426ea
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ebx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ebx, edi
mov ecx, dword [eax + 0x24]
add edx, edi
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x1004273c
mov eax, dword [edx + esi*4]
push dword [ebp + 0xc]
add eax, edi
push eax
call fcn.10042599
pop ecx
pop ecx
test eax, eax
jne 0x10042743
mov edx, dword [ebp - 4]
inc esi
cmp esi, dword [ebp + 8]
jb 0x1004271f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 8]
movzx eax, word [eax + esi*2]
mov eax, dword [ebx + eax*4]
add eax, edi
jmp 0x1004273e
Function at 0x10042969
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10042996
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10042996
mov ecx, 0x14c
cmp word [eax + 4], cx
jne 0x10042996
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10057978
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1006f870
push 0x1006f868
push str.FlsAlloc
push 0x1e
call fcn.100577c2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100579ac
push dword [ebp + 8]
mov ecx, esi
call dword [0x10069180]
call esi
jmp 0x100579b2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100579f6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1006f880
push 0x1006f878
push str.FlsGetValue
push 0x20
call fcn.100577c2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10057a2d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10069180]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10059b82
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10059b04
Function at 0x1005c058
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1005c0f5
push ebx
push esi
call fcn.1005c021
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1005adf8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005c0a2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005c0f4
push edi
push eax
call fcn.10058474
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005c0c2
call fcn.100572b6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005c0f3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005adf8
add esp, 0x20
test eax, eax
jne 0x1005c0e1
push edi
call fcn.100572b6
jmp 0x1005c0e9
push ebx
call fcn.100572b6
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10063ea0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10063ecd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10063ecd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40b8a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x481c6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00476970
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b922
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004746ea
mov eax, dword [eax]
push 0x5ebcb8
push eax
call fcn.004671a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00476bfb
test bl, bl
je 0x40b922
push 0x5ebcb8
lea ecx, [esp + 0xc]
call fcn.00476f8b
push 0x5ebcc4
lea ecx, [esp + 0xc]
call fcn.00476f8b
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40b95e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00476bfb
jmp 0x40ba29
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40b9e2
lea edx, [esp + 0x7c]
push 0x5ebcc0
push edx
call fcn.004671a4
add esp, 8
test eax, eax
je 0x40b9e2
lea eax, [esp + 0x7c]
push 0x5ebcbc
push eax
call fcn.004671a4
add esp, 8
test eax, eax
je 0x40b9e2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b972
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00476bfb
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40c220
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40c282
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc