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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x1046080]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x101f908
lea eax, [ebp - 0x40c]
push pe_nt_image_headers32
push eax
call fcn.0101f965
and word [ebp - 0x20c], 0
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x40c]
push eax
push SysReAllocString
mov dword [ebp - 0x410], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x101f8fc
cmp word [ebp - 0x20c], ax
je 0x101f8fc
push 0x20013
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.WINMM.dll_PlaySoundW
mov ecx, dword [ebp - 4]
call fcn.01001aff
leave
ret 4

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

Disassembly:
lea eax, [ebp - 0x34]
push eax
push 1
push 0x411
push dword [esi + 0x20]
call ebx
lea eax, [esi + 0x2b8]
push eax
mov eax, dword [esi + 0x2bc]
push dword [eax + 0x288]
mov ecx, esi
push 0x43e
push 2
call fcn.010075bc
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8
test byte [eax + 0x28c], 0x10
jne 0x101fa41
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [ebp + 0xc]
cmp eax, 0x1388
jb 0x101fa41
call edi
push 0x101fa58
mov dword [ebp - 4], eax
call fcn.0101f87b
mov ecx, esi
call fcn.010074ec
mov ecx, 0x10460f8
call fcn.0101f7ce
jmp 0x10271e2
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push edi
push 0x439
push dword [esi + 0x20]
add ecx, 0x88
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x10], ecx
call ebx
push edi
mov ecx, esi
mov dword [esi + 0x2c4], 1
call fcn.0101f702
jmp 0x1021ac9
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x2bc]
test eax, eax
jne 0x1021abd
jmp 0x10271ce
add eax, 8
push eax
push ecx
push 0x421
push dword [esi + 0x20]
call ebx
jmp 0x10271ce
mov ecx, dword [eax + 0x28c]
and ecx, 0xf
jmp 0x101fb5c
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1021aaf
jmp 0x101fb5c
cmp dword [esi + 0x2bc], edi
pop edi
jne 0x101f9dd
jmp 0x101fa0e
mov eax, dword [esi + 0x2bc]
test eax, eax
push edi
jne 0x101fa17
jmp 0x101fa41
and dword [ebp - 0x34], 0
push 0xb
xor eax, eax
pop ecx
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
mov dword [0x1046118], 1
mov ecx, dword [esi + 0x2bc]
xor edi, edi
cmp ecx, edi
jne 0x101fa7e
jmp 0x101faa6
Function at 0x10211cd
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x614
mov eax, dword [0x1046080]
or dword [ebp + 0x1c], 4
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x614], edi
mov word [ebp - 0x20c], bx
jne 0x10253be
mov dword [ebp - 0x610], ebx
cmp esi, ebx
je 0x10253ef
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x10253ef
cmp word [ebp - 0x20c], bx
je 0x102125d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
cmp eax, 0xffffffff
je 0x102125d
push eax
call dword [sym.imp.SHELL32.dll_DriveType]
cmp eax, 2
je 0x10253da
cmp eax, 5
je 0x10253da
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x10253ef
cmp dword [ebp + 0x14], ebx
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mov edi, pe_nt_image_headers32
jne 0x1025405
xor eax, eax
cmp dword [ebp + 0x18], eax
jne 0x1025423
push dword [ebp + 0x1c]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x610]
push dword [ebp - 0x614]
call dword [sym.imp.SHELL32.dll_Ordinal_61]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01001aff
leave
ret 0x18
movzx eax, word [ebp + 0xc]
push eax
push dword [0x10460dc]
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x610], eax
jmp 0x102120b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x102125d
push ebx
push 0x10
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x1021272
push edi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 0x14]
push dword [0x10460dc]
call esi
lea ebx, [ebp - 0x40c]
jmp 0x1021286
push edi
lea eax, [ebp - 0x60c]
push eax
push dword [ebp + 0x18]
push dword [0x10460dc]
call esi
lea eax, [ebp - 0x60c]
jmp 0x1021291
Function at 0x10428a2
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1046080]
and word [ebp - 0x20c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push dword [esi + 0x250]
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.GDI32.dll_SetTextColor]
push ebx
call edi
push dword [esi + 0x24c]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
mov dword [ebp - 0x218], eax
call esi
push 1
push ebx
mov dword [ebp - 0x220], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
and dword [ebp - 0x210], 0
mov dword [ebp - 0x21c], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x104294f
push 0x1029d6c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x104294f
push 2
push 0
lea eax, [ebp - 0x20c]
push eax
jmp 0x1042958
push 2
push 0
push 0x1029d6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [ebp - 0x214], eax
je 0x10429fa
push 0x1042a28
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [ebp - 0x224], eax
je 0x10429b6
push 0x64
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x210], eax
je 0x10429b6
push 0x32
push eax
call dword [ebp - 0x224]
test eax, eax
jne 0x10429b6
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 0x210], 0
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x210], 0
je 0x10429fa
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
push ecx
push eax
push dword [ebp - 0x210]
push ecx
push ecx
push 0x12
push 0x46
push ebx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x218]
push ebx
call edi
push dword [ebp - 0x220]
push ebx
call esi
push dword [ebp - 0x21c]
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01001aff
leave
ret 4
Function at 0x403160
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

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 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 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x4733db]
shl eax, 2
mov dword [0x4733df], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0046649c
pop edx
call fcn.00466400
call fcn.004664dc
push 0
call fcn.004677d4
pop ecx
push 0x473384
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4733e3], eax
push 0
jmp fcn.0046dc14

Function at 0x4063d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
jge 0x40641c
movzx ecx, word [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
movzx eax, byte [eax + edx]
xor ecx, eax
and ecx, 0xff
mov dx, word [ecx*2 + 0x475e7c]
movzx ecx, word [ebp + 8]
sar ecx, 8
xor dx, cx
mov word [ebp + 8], dx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jl 0x4063e5
mov ax, word [ebp + 8]
xor ax, 0xffff
pop ecx
pop ebp
ret

Function at 0x406520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xffff
call fcn.004063d4
add esp, 0xc
mov word [ebp - 2], ax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov cl, byte [ebp - 2]
and cl, 0xff
mov byte [eax + edx], cl
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
movzx ecx, word [ebp - 2]
sar ecx, 8
and cl, 0xff
mov byte [eax + edx + 1], cl
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
jmp 0x4065cd
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
movsx eax, byte [edx + ecx]
cmp eax, 0x7d
jl 0x4065b4
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
movsx eax, byte [edx + ecx]
cmp eax, 0x7f
jg 0x4065b4
mov edx, dword [ebp - 0x10]
mov byte [ebp + edx - 0x110], 0x7d
inc dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dl, byte [ecx + eax]
and dl, 0xf
or dl, 0x50
mov ecx, dword [ebp - 0x10]
mov byte [ebp + ecx - 0x110], dl
jmp 0x4065c7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov cl, byte [eax + edx]
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x110], cl
inc dword [ebp - 0xc]
inc dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
inc edx
cmp edx, dword [ebp - 0xc]
jge 0x40656d
mov ecx, dword [ebp - 0x10]
mov byte [ebp + ecx - 0x110], 0x7e
push 0xc
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.KERNEL32.DLL_PurgeComm
push 0
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
lea eax, [ebp - 0x110]
push eax
mov edx, dword [ebp + 8]
push dword [edx + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
je 0x40661a
mov ecx, dword [ebp + 0x10]
add ecx, 3
cmp ecx, dword [ebp - 8]
jbe 0x40661e
xor eax, eax
jmp 0x406623
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x406628
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor eax, eax
mov dword [ebp - 4], eax
mov byte [ebp - 0x11], 0
xor edx, edx
mov dword [ebp - 0xc], edx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
push 0
lea eax, [ebp - 4]
push eax
push 1
lea edx, [ebp - 5]
push edx
mov ecx, dword [ebp + 8]
push dword [ecx + 4]
call sub.KERNEL32.DLL_ReadFile
cmp dword [ebp - 4], 1
je 0x406673
mov eax, dword [0x47c36c]
mov eax, dword [eax]
call fcn.0042fe78
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0xa
jl 0x406641
cmp dword [ebp - 4], 0
jne 0x40667d
xor eax, eax
jmp 0x4066db
mov dl, byte [ebp - 5]
sub dl, 0x7d
je 0x40668b
dec dl
jne 0x406691
jmp 0x4066cb
mov byte [ebp - 0x11], 1
jmp 0x4066be
cmp byte [ebp - 0x11], 0
je 0x4066ab
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dl, byte [ebp - 5]
and dl, 0xf
or dl, 0x70
mov byte [ecx + eax], dl
jmp 0x4066b7
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dl, byte [ebp - 5]
mov byte [ecx + eax], dl
mov byte [ebp - 0x11], 0
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jl 0x40663c
push 0xc
mov ecx, dword [ebp + 8]
push dword [ecx + 4]
call sub.KERNEL32.DLL_PurgeComm
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x407e88
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
mov eax, dword [ebp + 8]
cmp dword [eax + 0x31c], 0
jne 0x407ed7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xffff
call fcn.004063d4
add esp, 0xc
mov word [ebp - 2], ax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov al, byte [ebp - 2]
and al, 0xff
mov byte [edx + ecx], al
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
movzx eax, word [ebp - 2]
sar eax, 8
and al, 0xff
mov byte [edx + ecx + 1], al
jmp 0x407edb
sub dword [ebp + 0x10], 2
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
jmp 0x407f45
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
movsx eax, byte [eax + ecx]
cmp eax, 0x7d
jl 0x407f2c
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
movsx eax, byte [edx + ecx]
cmp eax, 0x7f
jg 0x407f2c
mov edx, dword [ebp - 0x10]
mov byte [ebp + edx - 0x114], 0x7d
inc dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dl, byte [ecx + eax]
and dl, 0xf
or dl, 0x50
mov ecx, dword [ebp - 0x10]
mov byte [ebp + ecx - 0x114], dl
jmp 0x407f3f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov cl, byte [eax + edx]
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x114], cl
inc dword [ebp - 0xc]
inc dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
inc edx
cmp edx, dword [ebp - 0xc]
jge 0x407ee5
mov ecx, dword [ebp - 0x10]
mov byte [ebp + ecx - 0x114], 0x7e
mov byte [ebp - 0x11], 0x7f
push 0xc
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.KERNEL32.DLL_PurgeComm
push 0
lea edx, [ebp - 8]
push edx
push 1
lea ecx, [ebp - 0x11]
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
inc ecx
push ecx
lea eax, [ebp - 0x114]
push eax
mov edx, dword [ebp + 8]
push dword [edx + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
je 0x407fad
mov ecx, dword [ebp + 0x10]
add ecx, 3
cmp ecx, dword [ebp - 8]
jbe 0x407fb1
xor eax, eax
jmp 0x407fb6
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x407fbc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 0x11], 0
xor eax, eax
mov dword [ebp - 0xc], eax
xor edx, edx
mov dword [ebp - 0x10], edx
push 0
lea ecx, [ebp - 4]
push ecx
push 1
lea eax, [ebp - 5]
push eax
mov edx, dword [ebp + 8]
push dword [edx + 4]
call sub.KERNEL32.DLL_ReadFile
cmp dword [ebp - 4], 1
je 0x408003
mov ecx, dword [0x47c36c]
mov eax, dword [ecx]
call fcn.0042fe78
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0xa
jl 0x407fd0
cmp dword [ebp - 4], 0
jne 0x40800d
xor eax, eax
jmp 0x408062
mov dl, byte [ebp - 5]
sub dl, 0x7d
je 0x40801f
dec dl
je 0x40805f
dec dl
jne 0x408025
jmp 0x408052
mov byte [ebp - 0x11], 1
jmp 0x408052
cmp byte [ebp - 0x11], 0
je 0x40803f
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dl, byte [ebp - 5]
and dl, 0xf
or dl, 0x70
mov byte [ecx + eax], dl
jmp 0x40804b
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dl, byte [ebp - 5]
mov byte [ecx + eax], dl
mov byte [ebp - 0x11], 0
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x100
jl 0x407fcb
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x408450
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
mov eax, 0x4774d4
call fcn.00466bc0
push str.SAMSUNG.
lea edx, [ebp - 0x5c]
push edx
call fcn.0046691c
add esp, 8
push 8
mov ecx, dword [ebp + 0xc]
add ecx, 0x12f
push ecx
lea eax, [ebp - 0x5c]
push eax
call fcn.004669a8
add esp, 0xc
mov word [ebp - 0x2c], 0x14
lea eax, [ebp - 8]
call fcn.00401968
mov edx, eax
inc dword [ebp - 0x20]
mov ecx, dword [0x47c36c]
mov eax, dword [ecx]
call fcn.004304ec
lea edx, [ebp - 8]
push dword [edx]
lea eax, [ebp - 0xc]
call fcn.00401968
mov edx, eax
inc dword [ebp - 0x20]
pop eax
call fcn.0045d164
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
call fcn.00401968
push eax
inc dword [ebp - 0x20]
mov edx, 0x4771ef
lea eax, [ebp - 0x10]
call fcn.00471e78
inc dword [ebp - 0x20]
lea edx, [ebp - 0x10]
pop ecx
pop eax
call fcn.00471f74
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00471f30
dec dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00471f30
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00471f30
mov word [ebp - 0x2c], 8
lea eax, [ebp - 4]
call fcn.00402bcc
push eax
push 0x40
lea edx, [ebp - 0x9c]
push edx
push 0x4771fb
push dword [ebp + 0x10]
lea ecx, [ebp - 0x5c]
push ecx
call sub.KERNEL32.DLL_GetPrivateProfileStringA
push 0x4771ff
lea eax, [ebp - 0x9c]
push eax
call fcn.004668d0
add esp, 8
test eax, eax
jne 0x4085c0
mov word [ebp - 0x2c], 0x20
mov edx, 0x477203
lea eax, [ebp - 0x14]
call fcn.00471e78
inc dword [ebp - 0x20]
lea edx, [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.00471f60
mov eax, dword [ebp + 8]
mov word [ebp - 0x2c], 0x2c
push eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00471f30
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00471f30
pop eax
mov word [ebp - 0x2c], 0x20
inc dword [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
jmp 0x40861f
mov word [ebp - 0x2c], 0x38
lea edx, [ebp - 0x9c]
lea eax, [ebp - 0x18]
call fcn.00471e78
mov edx, eax
inc dword [ebp - 0x20]
mov eax, dword [ebp + 8]
call fcn.00471f60
mov eax, dword [ebp + 8]
mov word [ebp - 0x2c], 0x44
push eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00471f30
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00471f30
pop eax
mov word [ebp - 0x2c], 0x38
inc dword [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x4094b8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
mov eax, 0x4779b8
call fcn.00466bc0
push 0x477758
lea edx, [ebp - 0x5c]
push edx
call fcn.0046691c
add esp, 8
push 8
mov ecx, dword [ebp + 0xc]
add ecx, 0x12f
push ecx
lea eax, [ebp - 0x5c]
push eax
call fcn.004669a8
add esp, 0xc
mov word [ebp - 0x2c], 0x14
lea eax, [ebp - 8]
call fcn.00401968
mov edx, eax
inc dword [ebp - 0x20]
mov ecx, dword [0x47c36c]
mov eax, dword [ecx]
call fcn.004304ec
lea edx, [ebp - 8]
push dword [edx]
lea eax, [ebp - 0xc]
call fcn.00401968
mov edx, eax
inc dword [ebp - 0x20]
pop eax
call fcn.0045d164
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
call fcn.00401968
push eax
inc dword [ebp - 0x20]
mov edx, 0x477762
lea eax, [ebp - 0x10]
call fcn.00471e78
inc dword [ebp - 0x20]
lea edx, [ebp - 0x10]
pop ecx
pop eax
call fcn.00471f74
dec dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00471f30
dec dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00471f30
dec dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00471f30
mov word [ebp - 0x2c], 8
lea eax, [ebp - 4]
call fcn.00402bcc
push eax
push 0x40
lea edx, [ebp - 0x9c]
push edx
push 0x47776e
push dword [ebp + 0x10]
lea ecx, [ebp - 0x5c]
push ecx
call sub.KERNEL32.DLL_GetPrivateProfileStringA
push 0x477772
lea eax, [ebp - 0x9c]
push eax
call fcn.004668d0
add esp, 8
test eax, eax
jne 0x409628
mov word [ebp - 0x2c], 0x20
mov edx, 0x477776
lea eax, [ebp - 0x14]
call fcn.00471e78
inc dword [ebp - 0x20]
lea edx, [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.00471f60
mov eax, dword [ebp + 8]
mov word [ebp - 0x2c], 0x2c
push eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00471f30
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00471f30
pop eax
mov word [ebp - 0x2c], 0x20
inc dword [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
jmp 0x409687
mov word [ebp - 0x2c], 0x38
lea edx, [ebp - 0x9c]
lea eax, [ebp - 0x18]
call fcn.00471e78
mov edx, eax
inc dword [ebp - 0x20]
mov eax, dword [ebp + 8]
call fcn.00471f60
mov eax, dword [ebp + 8]
mov word [ebp - 0x2c], 0x44
push eax
dec dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00471f30
dec dword [ebp - 0x20]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00471f30
pop eax
mov word [ebp - 0x2c], 0x38
inc dword [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret

Function at 0x416764
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004641d4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4167b3
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00464404
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41c970
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41c976
ret
Function at 0x41ee54
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41eea5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41ee8c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41ee7c
jmp 0x41eea5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41ee8d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427538
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47e504
cmp dword [edi], 0
jne 0x4275b4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x47e500]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x478764
mov ecx, 2
call fcn.004631d0
mov edx, 0x427510
lea eax, [esi + 5]
call fcn.00427530
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00427530
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x427589
mov dword [0x47e500], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4276d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x427720]
test si, 4
je 0x4276e4
or bl, 1
test si, 8
je 0x4276ee
or bl, 4
test si, 1
je 0x4276f8
or bl, 8
test si, 2
je 0x427702
or bl, 0x10
test si, 0x10
je 0x42770c
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x42771b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x427724
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x42775c]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x42773d
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x42774c
or bl, 4
test esi, 0x20000000
je 0x427757
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret