joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424f8e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.0042511a
lea edi, [esi + 0x474]
push ebx
mov ecx, esi
call fcn.0042514a
mov dword [edi], eax
inc ebx
add edi, 4
cmp ebx, 0x200
jb 0x424fb1
and dword [ebp - 4], 0
lea ebx, [esi + 0x74]
mov edi, 0x100
mov eax, dword [ebp - 4]
mov ecx, esi
add eax, 0x1000
push eax
call fcn.0042514a
inc dword [ebp - 4]
mov dword [ebx], eax
add ebx, 4
cmp dword [ebp - 4], edi
jb 0x424fd3
and dword [ebp - 4], 0
lea ebx, [esi + 0xc74]
mov eax, dword [ebp - 4]
mov ecx, esi
add eax, 0x2000
push eax
call fcn.0042514a
inc dword [ebp - 4]
mov dword [ebx], eax
add ebx, 4
cmp dword [ebp - 4], 0x10
jb 0x424ffa
mov ecx, esi
call fcn.00424b44
and dword [esi + 0x1db4], 0
xor eax, eax
or cl, 0xff
sub cl, al
mov byte [ebp + eax - 0x110], cl
inc eax
cmp eax, edi
jb 0x425028
and dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0x14
jge 0x4250a3
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, 0x14
mov dword [ebp - 0x10], eax
jge 0x42509a
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov ebx, edi
movzx eax, byte [eax + ecx]
movzx edx, byte [ecx + edx - 1]
add eax, edx
mov edx, dword [ebp - 4]
movzx edx, byte [edx + ecx - 1]
xor eax, edx
cdq
idiv ebx
mov eax, dword [ebp - 0xc]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], edi
mov byte [ebp + eax - 0x210], dl
jge 0x4250ac
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x14
jl 0x42505f
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x15
jl 0x425051
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jb 0x425044
xor eax, eax
mov dword [ebp + 8], eax
movzx ecx, byte [ebp + eax - 0x210]
cmp eax, ecx
je 0x4250d6
lea ecx, [ebp + ecx - 0x110]
lea eax, [ebp + eax - 0x110]
mov bl, byte [ecx]
mov dl, byte [eax]
mov byte [eax], bl
mov eax, dword [ebp + 8]
mov byte [ecx], dl
inc eax
cmp eax, edi
mov dword [ebp + 8], eax
jl 0x4250b1
cmp byte [ebp + 0xc], 0
je 0x4250fd
lea eax, [ebp - 0x110]
push edi
add esi, 0x1cb4
push eax
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x425113
xor eax, eax
movzx ecx, byte [ebp + eax - 0x110]
mov byte [ecx + esi + 0x1cb4], al
inc eax
cmp eax, edi
jb 0x4250ff
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x425260
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 8]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
test eax, eax
jne 0x4252a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4252a1
push eax
lea eax, [ebp - 8]
push str.ERROR:__d_CRLEvent::IsEventExist__
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
xor al, al
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
leave
ret
Function at 0x42530a
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
push dword [esp + 0xc]
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi], eax
je 0x42533d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42533b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
mov eax, dword [esi]
pop esi
ret 8

Function at 0x425341
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x425386
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x425382
push eax
lea eax, [ebp - 8]
push str.ERROR:__d_RLMutexWin::IsExist__
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
xor al, al
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
leave
ret

Function at 0x42547f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [ecx]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fread]
mov esi, eax
add esp, 0x10
cmp esi, dword [ebp + 0xc]
je 0x4254ca
call dword [sym.imp.MSVCRT.dll__errno]
push dword [eax]
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push esi
push str.RLFile::Read____d__d_error_d
push eax
call fcn.004253a6
add esp, 0x14
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
pop esi
leave
ret 8

Function at 0x4254cf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [ecx]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fwrite]
mov esi, eax
add esp, 0x10
cmp esi, dword [ebp + 0xc]
je 0x42551a
call dword [sym.imp.MSVCRT.dll__errno]
push dword [eax]
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push esi
push str.RLFile::Write____d__d_error_d
push eax
call fcn.004253a6
add esp, 0x14
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
pop esi
leave
ret 8

Function at 0x4256d5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x425710
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.RLFileWin::GetSize___error_d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret
Function at 0x425712
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0
push eax
push esi
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425737
cmp dword [ebp + 0xc], esi
je 0x42575d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.RLFileWin::Read___error_d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
pop esi
leave
ret 8

Function at 0x425762
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0
push eax
push esi
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x425787
cmp dword [ebp + 0xc], esi
je 0x4257ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.RLFileWin::Write___error_d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
pop esi
leave
ret 8

Function at 0x4259bc
Capabilities:
Connect to http server
Create http request

Disassembly:
mov eax, 0x47c07c
call fcn.00478530
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi]
cmp eax, ebx
jne 0x425a51
cmp byte [0x4a7af8], bl
je 0x4259ea
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
jmp 0x425a4b
cmp word [0x4a7afa], bx
jne 0x4259fa
push ebx
push ebx
push ebx
push 1
jmp 0x4259df
lea ecx, [ebp - 0x10]
call fcn.004281c1
movzx eax, word [0x4a7afa]
push eax
mov ecx, 0x4a7af4
mov dword [ebp - 4], ebx
call fcn.00428c5a
push eax
lea eax, [ebp - 0x10]
push str._s:_d
push eax
call fcn.004296c6
add esp, 0x10
lea ecx, [ebp - 0x10]
push ebx
push ebx
call fcn.00428c5a
push eax
push 3
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [esi], eax
call fcn.004284bd
mov eax, dword [esi]
cmp eax, ebx
je 0x425a75
cmp dword [esi + 4], ebx
jne 0x425b0b
push 1
push ebx
push 3
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x425a83
mov ecx, esi
call fcn.00425923
xor al, al
jmp 0x425b0d
cmp byte [0x4a7af8], bl
push edi
jne 0x425a95
cmp word [0x4a7afa], bx
je 0x425ae7
mov edi, 0x4a7aec
mov ecx, edi
call fcn.00428c4a
test eax, eax
jne 0x425ae7
mov ecx, edi
call fcn.00428c38
push eax
mov ecx, edi
call fcn.00428c5a
push eax
push 0x2b
mov ecx, esi
call fcn.00425983
mov edi, 0x4a7ae8
mov ecx, edi
call fcn.00428c4a
test eax, eax
jne 0x425ae7
mov ecx, edi
call fcn.00428c38
push eax
mov ecx, edi
call fcn.00428c5a
push eax
push 0x2c
mov ecx, esi
call fcn.00425983
mov edi, 0xea60
mov ecx, esi
push edi
push 2
call fcn.0042594b
push edi
push 6
mov ecx, esi
call fcn.0042594b
push edi
push 5
mov ecx, esi
call fcn.0042594b
pop edi
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x425b50
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
lea eax, [ebp - 0x128]
push edi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x28]
push eax
mov esi, ecx
push dword [ebp + 0xc]
call fcn.00425e98
add esp, 0x14
mov ecx, esi
call fcn.00425b1d
mov edi, 0x4a7870
push str.RLHttp::SendRequest__3
push edi
call fcn.0042635b
pop ecx
lea eax, [ebp - 0xa8]
pop ecx
push dword [ebp - 4]
mov ecx, esi
push eax
call fcn.004259bc
test al, al
je 0x425ca3
lea eax, [ebp - 0x28]
xor ebx, ebx
push 0x4901a0
push eax
mov dword [ebp - 8], ebx
mov dword [ebp + 0xc], 0x4080100
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x425bd8
mov dword [ebp + 0xc], 0x4881100
mov ecx, 0x4a7aec
call fcn.00428c4a
test eax, eax
jne 0x425bea
or byte [ebp + 0xe], 0x40
push str.RLHttp::SendRequest__5
push edi
call fcn.0042635b
pop ecx
lea eax, [ebp - 8]
pop ecx
push ebx
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x128]
push dword [esi + 0x14]
push ebx
push eax
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x425c26
mov ecx, esi
call fcn.00425923
jmp 0x425ca3
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x425c35
and dword [ebp + 8], ebx
and dword [ebp + 0xc], ebx
jmp 0x425c45
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp + 0xc], eax
lea ebx, [esi + 0x10]
mov ecx, ebx
call fcn.00428c38
push dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
push eax
push dword [esi + 8]
push str.RLHttp::SendRequest__8__X__X__X__X
push edi
call fcn.0042635b
add esp, 0x18
mov ecx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.00428c5a
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x425ca7
mov ecx, esi
call fcn.00425923
push str.RLHttp::SendRequest__8_ERROR
push edi
call fcn.0042635b
pop ecx
pop ecx
mov ecx, esi
call fcn.00425b39
xor al, al
jmp 0x425cb6
push str.RLHttp::SendRequest__9
push edi
call fcn.0042635b
pop ecx
mov al, 1
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x425cbd
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov edi, str.S:Ammyy_sourcesRLRLHttp.cpp
cmp dword [esi + 8], 0
jne 0x425ce7
push 0xde
push edi
lea ecx, [ebp - 0x14]
call fcn.0042328b
mov ecx, eax
call fcn.00423397
lea eax, [ebp - 8]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xc]
and dword [ebp - 8], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push 0x20000005
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x425d29
push 0xe4
push edi
lea ecx, [ebp - 0x14]
call fcn.0042328b
mov ecx, eax
call fcn.00423397
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x42642e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42645b
mov al, 1
leave
ret 8
cmp eax, 2
jne 0x426464
xor al, al
jmp 0x426457
push eax
lea eax, [ebp - 0xc]
push str.RegQueryValueExA___error_u
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException

Function at 0x426484
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
lea ecx, [ebp - 4]
mov eax, 0x104
push ecx
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 4], eax
call fcn.004289aa
push eax
push 0
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop esi
jne 0x4264c8
push dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
call fcn.00428a80
mov al, 1
leave
ret 8
cmp eax, 2
jne 0x4264de
mov ecx, dword [ebp + 0xc]
push 0x4a73e0
call fcn.00428687
xor al, al
jmp 0x4264c4
push eax
lea eax, [ebp - 0xc]
push str.RegQueryValueExA___error_u
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException

Function at 0x4264fe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push eax
push 0
push 0
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x426528
xor al, al
leave
ret 4
test eax, eax
jne 0x426530
mov al, 1
jmp 0x426524
push eax
lea eax, [ebp - 0xc]
push str.IsExistW___error_u
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
Function at 0x426550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor esi, esi
push eax
push esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
push esi
push dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], esi
push dword [ebx]
call edi
cmp eax, 2
jne 0x426582
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
cmp eax, esi
jne 0x4265e3
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
add ecx, dword [ebp - 4]
push ecx
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 4]
mov ecx, esi
push eax
mov eax, dword [esi]
call dword [eax + 0x18]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x4265e3
cmp dword [ebp - 4], 0xf4240
jb 0x4265d1
push 0x78
push str.S:Ammyy_sourcesRLRLRegistry.cpp
lea ecx, [ebp - 0xc]
call fcn.0042328b
mov ecx, eax
call fcn.00423397
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
add ecx, dword [ebp - 4]
push ecx
mov ecx, esi
call dword [eax + 0x20]
mov al, 1
jmp 0x42657b
push eax
lea eax, [ebp - 0xc]
push str.RegQueryValueExW___error_u
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0xc]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException

Function at 0x426603
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push dword [ecx + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x14]
push eax
push 3
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop esi
je 0x42664b
push eax
lea eax, [ebp - 8]
push str.RegSetValueExW_REG_BINARY__error_u
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret 8

Function at 0x42664f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
call fcn.00428c38
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00428c5a
push eax
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x42669d
push eax
lea eax, [ebp - 8]
push str.RegSetValueExA___error_u
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret 8

Function at 0x4266a1
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4266db
cmp eax, 2
je 0x4266db
push eax
lea eax, [ebp - 8]
push str.RegDeleteKeyA___error_u
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret
Function at 0x426710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x426758
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.FindResourceEx___error_d_lpName0x_X
push eax
call fcn.004253a6
add esp, 0x10
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x42678e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.SizeofResource___error_d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4267c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.LoadResource___error_d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4267f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.LockResource___error_d
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x427c76
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x47c1a3
call fcn.00478530
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], esi
call fcn.004281c1
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xe
push dword [edi + 4]
mov dword [ebp - 4], 1
call esi
mov ebx, eax
test ebx, ebx
jbe 0x427ccc
inc ebx
lea ecx, [ebp - 0x10]
push ebx
call fcn.004289aa
push eax
push ebx
push 0xd
push dword [edi + 4]
call esi
push eax
lea ecx, [ebp - 0x10]
call fcn.00428a80
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004281cd
mov dword [ebp - 0x14], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004284bd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x427cff
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x47c1cf
call fcn.00478530
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], edi
call fcn.00429776
push edi
push edi
xor ebx, ebx
push 0xe
push dword [esi + 4]
inc ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
test edi, edi
jbe 0x427d56
inc edi
lea ecx, [ebp - 0x10]
push edi
call fcn.00429f77
push eax
push edi
push 0xd
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042a04d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00429782
mov dword [ebp - 0x14], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00429a78
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x42aa5a
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x47c39c
call fcn.00478530
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
mov dword [ebp - 0x10], esi
call fcn.00427de3
lea ecx, [esi + 0x28]
mov dword [ebp - 4], ebx
call fcn.004281c1
push 0xf
mov dword [esi], 0x47fea0
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], 0x64
mov dword [esi + 0x24], ebx
mov dword [esi + 0x30], 0xff000000
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x34], eax
mov dword [esi + 0x18], 0xff000000
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x3c], bl
mov dword [esi + 0x38], ebx
mov dword [esi + 0x10], 0x24
mov byte [esi + 0x14], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42b77b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.0042b9b5
mov ecx, esi
call fcn.0042bf19
mov ecx, dword [esi + 0x750]
mov edi, dword [esi + 0x74c]
mov eax, ecx
xor ebx, ebx
imul eax, eax, 0x190
cdq
idiv edi
push ebx
mov byte [esi + 0x83c], bl
mov dword [esi + 0x1dc], eax
mov eax, ecx
imul eax, eax, 0xc8
cdq
idiv edi
mov ecx, esi
mov dword [esi + 0x1e0], eax
call fcn.0042cf26
push 1
mov ecx, esi
call fcn.004318b2
push 0x49d68c
mov ecx, esi
call fcn.0042b727
push ebx
push 0x4a73e0
mov ecx, esi
call fcn.00430bbe
push ebx
push ebx
push esi
push 0x42ff2b
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x9f4], eax
cmp eax, ebx
pop edi
pop esi
pop ebx
jne 0x42b838
call dword [sym.imp.MSVCRT.dll__errno]
push dword [eax]
lea eax, [ebp - 8]
push str.Failed__beginthreadex____errno___d_
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 8]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
leave
ret
Function at 0x42b8a6
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, 0x47c620
call fcn.00478530
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x4a7b20
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
call fcn.00425fd6
cmp byte [ebp + 8], bl
mov byte [ebp - 4], 1
je 0x42b951
cmp dword [0x4a7b6c], ebx
jne 0x42b949
cmp dword [0x4a7b68], ebx
je 0x42b907
lea eax, [ebp - 0x24]
push str.ERROR1_in_HookKeyboard__
push eax
call fcn.004253a6
pop ecx
lea eax, [ebp - 0x24]
pop ecx
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
push ebx
push 0x400000
push 0x42b83a
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
cmp eax, ebx
mov dword [0x4a7b6c], eax
jne 0x42b949
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x2c]
push str.Error_d_while_SetWindowsHookEx__
push eax
call fcn.004253a6
add esp, 0xc
lea eax, [ebp - 0x2c]
push 0x483c5c
push eax
call sub.MSVCRT.dll__CxxThrowException
mov dword [0x4a7b68], esi
jmp 0x42b975
mov eax, dword [0x4a7b6c]
cmp eax, ebx
je 0x42b975
cmp dword [0x4a7b68], esi
jne 0x42b975
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x4a7b6c], ebx
mov dword [0x4a7b68], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00425fea
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4