joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f223c
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 8], 0
jne 0x4f2262
push 0x146
push str.afxtls.cpp
call fcn.004dc030
test eax, eax
je 0x4f2262
int3
xor eax, eax
test eax, eax
jne 0x4f2248
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
jmp 0x4f2281
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 8]
jge 0x4f2304
cmp dword [ebp + 0xc], 0
je 0x4f22a4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*8 + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x4f22e9
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4f22d0
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
call dword [edx]
mov dword [ebp - 0x20], eax
jmp 0x4f22d7
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx + edx*4], 0
jmp 0x4f22ff
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
cmp dword [ecx + edx*4], 0
je 0x4f22ff
mov dword [ebp - 4], 0
jmp 0x4f2278
cmp dword [ebp - 4], 0
je 0x4f2378
mov eax, dword [ebp - 0x1c]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.004f2900
mov edx, dword [ebp - 0x1c]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4f2363
push 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
call dword [edx]
mov dword [ebp - 0x24], eax
jmp 0x4f236a
mov dword [ebp - 0x24], 0
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4f2381
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0xc], 0
jne 0x4f23c4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4f23c2
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004f223c
jmp 0x4f23f9
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.004f2920
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4f23f9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004f223c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x4f23d2
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret 8
Function at 0x4f6aed
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0
jne 0x4f6b39
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
je 0x4f6b32
mov eax, dword [ebp + 8]
push eax
push 0x5e6320
call fcn.0045b025
add esp, 8
xor eax, eax
jmp 0x4f6ba5
mov eax, 1
jmp 0x4f6ba5
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4f6b92
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4f6b92
cmp dword [ebp - 8], 0
jne 0x4f6b92
mov eax, 1
jmp 0x4f6ba5
mov edx, dword [ebp + 8]
push edx
push str.Warning:_registration_database_update_failed_for_key__s._n
call fcn.0045b025
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4f7ac5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ecx, 0x5f2ec0
call fcn.004f7c10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 8]
test ecx, ecx
jne 0x4f7bae
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x4f7b06
push 0x2f
push str.ccdata.cpp
call fcn.004dc030
test eax, eax
je 0x4f7b06
int3
xor eax, eax
test eax, eax
jne 0x4f7aec
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4f7b71
push 5
mov ecx, dword [ebp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4f7b71
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004903c2
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.004d85b0
add eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 8]
call fcn.004d85fa
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov cx, word [eax]
mov word [edx + 8], cx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.0048489d
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov ax, word [edx + 8]
mov word [ecx], ax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dx, word [ecx]
xor eax, eax
cmp edx, 0xffff
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ffa98
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4ffb3b
cmp dword [ebp + 8], 0
je 0x4ffb3b
lea edx, [ebp - 0xc]
push edx
push 0x5e98f4
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ole32.dll_StringFromCLSID]
mov edx, dword [ebp - 0x10]
push edx
call fcn.004f871e
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x523f1f
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
push 0x55
push str.oledrop1.cpp
mov eax, dword [ebp - 0x24]
push eax
call fcn.0048d4d0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x30], 0
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x38], 0
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x523f83
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x38]
or al, 1
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x34]
or al, 2
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x34], eax
jmp 0x523fb0
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x523fb0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x38]
or ecx, 2
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x38], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x34]
or ecx, 1
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.004dfe04
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x30], 0
jne 0x52408a
call fcn.004dfdf3
cmp eax, dword [ebp + 8]
je 0x523fdd
jmp 0x52408a
push 1
push 0x209
push 0x200
push 0
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x524015
push 1
push 0x108
push 0x100
push 0
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x52406a
cmp dword [ebp - 0x1c], 0x202
je 0x524039
cmp dword [ebp - 0x1c], 0x205
je 0x524039
cmp dword [ebp - 0x1c], 0x201
je 0x524039
cmp dword [ebp - 0x1c], 0x204
jne 0x52403b
jmp 0x52408a
cmp dword [ebp - 0x1c], 0x100
jne 0x52404c
cmp dword [ebp - 0x18], 0x1b
jne 0x52404c
jmp 0x52408a
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0x20
call fcn.004e5cfe
neg eax
sbb eax, eax
inc eax
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [0x5f300c]
jbe 0x524085
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x30], 1
jmp 0x523fc1
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x30]
mov esp, ebp
pop ebp
ret 4
Function at 0x1feb1650
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x4e4
mov eax, dword [0x1feb903c]
push ebx
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x1feb1682
push 0
call fcn.1feb4540
add esp, 4
test eax, eax
jne 0x1feb1682
mov dword [esp + 0x34], 0x1feba2e0
jmp 0x1feb1692
mov eax, dword [0x1feb903c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x4f8]
mov dword [esp + 0x6c], 0
mov eax, dword [ecx + 4]
mov dword [esp + 0x28], 1
mov ebp, dword [eax + 0x30]
mov esi, dword [eax + 0x10]
call fcn.1feb45d0
lea edi, [esp + 0xf4]
xor eax, eax
mov ecx, 0x100
rep stosd dword es:[edi], eax
dec esi
cmp esi, 0x1f
ja 0x1feb16da
mov al, byte [esi + 0x1feb2944]
jmp dword [eax*4 + 0x1feb2928]
mov eax, 0xffffffe5
jmp 0x1feb291a
call dword [ebp - 0x3a]
test dword [ebx - 7], esp
invalid
Function at 0x1feb4920
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.1feb49e0
cmp dword [0x1feb9098], 1
mov esi, dword [esp + 0x10]
jne 0x1feb4943
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1feb9094], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x1feb9090], bl
jne 0x1feb499d
cmp dword [0x1febb40c], 0
je 0x1feb498b
mov edi, dword [0x1febb408]
sub edi, 4
cmp edi, dword [0x1febb40c]
jb 0x1feb498b
mov eax, dword [edi]
test eax, eax
je 0x1feb4980
call eax
sub edi, 4
cmp edi, dword [0x1febb40c]
jae 0x1feb4978
push 0x1feb901c
push 0x1feb9014
call fcn.1feb4a00
add esp, 8
push 0x1feb9024
push 0x1feb9020
call fcn.1feb4a00
add esp, 8
test ebx, ebx
je 0x1feb49bc
call fcn.1feb49f0
pop edi
pop esi
pop ebx
ret
mov dword [0x1feb9098], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1feb4a20
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.1feb5910
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1feb909c], eax
cmp eax, 0xffffffff
jne 0x1feb4a3a
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.1feb5b20
add esp, 8
mov esi, eax
test esi, esi
je 0x1feb4a7c
push esi
mov eax, dword [0x1feb909c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1feb4a7c
push esi
call fcn.1feb4ab0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x1feb909c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x1feb4b33
push 0x74
push 1
call fcn.1feb5b20
add esp, 8
mov edi, eax
test edi, edi
je 0x1feb4b29
push edi
mov eax, dword [0x1feb909c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1feb4b29
push edi
call fcn.1feb4ab0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x1feb4b33
push 0x10
call fcn.1feb4880
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x1feb5530
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x1feb92ec], ebx
jne 0x1feb557f
call esi
cmp eax, ebx
mov edi, eax
je 0x1feb555d
mov dword [0x1feb92ec], 1
jmp 0x1feb557f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x1feb5575
mov dword [0x1feb92ec], 2
jmp 0x1feb557f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x1feb92ec], 1
jne 0x1feb562e
test edi, edi
jne 0x1feb55a2
call esi
mov edi, eax
test edi, edi
jne 0x1feb55a2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x1feb55bc
add esi, 2
cmp word [esi], 0
jne 0x1feb55aa
add esi, 2
cmp word [esi], 0
jne 0x1feb55aa
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x1feb561d
push ebp
call fcn.1feb63a0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x1feb561d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1feb560c
push ebx
call fcn.1feb5bd0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x1feb92ec], 2
jne 0x1feb56b2
test ebx, ebx
jne 0x1feb5651
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x1feb5651
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x1feb5666
inc ebp
cmp byte [ebp], 0
jne 0x1feb5658
inc ebp
cmp byte [ebp], 0
jne 0x1feb5658
sub ebp, ebx
inc ebp
push ebp
call fcn.1feb63a0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x1feb568b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x1feb5710
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x1feb92f0
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x1feb5737
add eax, 8
inc ecx
cmp eax, 0x1feb9380
jb 0x1feb5728
cmp dword [ecx*8 + 0x1feb92f0], edx
lea ebx, [ecx*8]
jne 0x1feb58fb
cmp dword [0x1feb9050], 1
je 0x1feb58b7
cmp dword [0x1feb9050], 0
jne 0x1feb576e
cmp dword [0x1feb9054], 1
je 0x1feb58b7
cmp edx, 0xfc
je 0x1feb58fb
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x1feb57ab
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x1feb57ef
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x1feb82ec
push ebp
call fcn.1feb6510
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1feb82cc
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x1feb92f4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.1feb6470
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x1febb300], 0
je 0x1feb58cd
mov eax, dword [0x1febb300]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x1feb58d7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x1feb92f4]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x434544
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x43458b
cmp edx, 0x10
jl 0x434577
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x434564
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x43458b
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x434583
and edx, 3
cmp edx, 3
jne 0x43459f
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x4345a4
cmp edx, 2
jne 0x4345b0
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x4345b5
cmp edx, 1
jne 0x4345bb
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x414f5a
Capabilities:
Enumerate process modules

Disassembly:
push ebp
push ebx
mov edx, 0x10e
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x414f61
call fcn.0042fe80
mov edx, dword [esp + 0x448]
lea ecx, [esp]
call fcn.0041a000
mov dword [0x4b6001], 0x4000096
mov dword [0x4b6001], 0x400009a
push dword [esp + 0x444]
push 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 0x42c], eax
mov dword [0x4b6001], 0x400009b
cmp dword [esp + 0x42c], 0
je 0x4150de
mov dword [0x4b6001], 0x400009c
lea ebp, [esp + 4]
mov dword [ebp], 0x428
mov dword [0x4b6001], 0x400009d
lea eax, [esp + 4]
push eax
push dword [esp + 0x430]
call sub.KERNEL32.dll_Module32FirstW
mov dword [esp + 0x430], eax
mov dword [0x4b6001], 0x400009e
cmp dword [esp + 0x430], 0
je 0x4150c8
mov dword [0x4b6001], 0x400009f
push edx
call fcn.0042fce0
pop edx
push eax
push 1
push 1
push dword [esp + 0xc]
push edx
call fcn.0042fce0
pop edx
push eax
push edx
call fcn.0042fce0
pop edx
push eax
lea ebp, [esp + 0x1c]
lea eax, [ebp + 0x20]
push eax
call fcn.0042ed90
call fcn.0041a2d2
add dword [esp], edx
call fcn.0042dda0
call fcn.0041a2b0
and eax, eax
je 0x41508d
mov dword [0x4b6001], 0x40000a0
lea ebp, [esp + 4]
push dword [ebp + 0x14]
pop eax
mov dword [esp + 0x434], eax
mov dword [0x4b6001], 0x40000a1
jmp 0x4150c8
mov dword [0x4b6001], 0x40000a2
mov dword [0x4b6001], 0x40000a3
lea eax, [esp + 4]
push eax
push dword [esp + 0x430]
call sub.KERNEL32.dll_Module32NextW
mov dword [esp + 0x430], eax
mov dword [0x4b6001], 0x40000a4
jmp 0x414ffd
mov dword [0x4b6001], 0x40000a5
push dword [esp + 0x42c]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b6001], 0x40000a6
mov dword [0x4b6001], 0x40000a8
mov eax, dword [esp + 0x434]
jmp 0x415107
push dword [esp]
call fcn.0042fee0
add esp, 0x438
pop ebx
pop ebp
ret 8