joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ae0d7
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [eax + 0x190]
test al, al
jns 0x4ae0f9
or eax, 0xffffffff
jmp 0x4ae0fe
mov eax, dword [0x5857f4]
mov edx, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x290]
push dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x586ccc
call fcn.0042739a
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
je 0x4ae19b
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x4ae19b
cmp edi, ebx
je 0x4ae150
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x200]
push eax
push 0x586d80
call fcn.0042739a
pop ecx
pop ecx
mov ebx, eax
cmp dword [ebp - 8], 2
jne 0x4ae1a4
test ebx, ebx
je 0x4ae187
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x198]
test al, 0x40
je 0x4ae19b
cmp dword [ebp - 4], 0
je 0x4ae187
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax + 0x224]
mov ecx, dword [ebp + 8]
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
mov eax, esi
jmp 0x4ae19d
mov eax, dword [esi]
push 5
push 0
push edi
mov ecx, esi
call dword [eax + 0x1d0]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], 3
jne 0x4ae19b
test edi, edi
je 0x4ae19b
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x15c]
test eax, eax
je 0x4ae19b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x164]
test eax, eax
je 0x4ae19b
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x218]
mov eax, dword [esi]
push 0
push 1
push 5
push edi
mov ecx, esi
call dword [eax + 0x328]
mov edx, dword [ebp + 8]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
jmp 0x4ae19d
Function at 0x4b1a95
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [0x58e198], 1
push ebx
push esi
push edi
mov ebx, ecx
jne 0x4b1ac4
or dword [0x58e198], 1
mov ecx, 0x58e194
call fcn.00411b60
push 0x5384b9
call fcn.0050cfe2
pop ecx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4b1ad0
call fcn.004124e8
mov eax, dword [ebx + 0x318]
test eax, eax
je 0x4b1b49
cmp dword [eax + 0x20], 0
je 0x4b1b49
test eax, eax
je 0x4b1ae7
mov eax, dword [eax + 0x20]
cmp dword [edi], eax
jne 0x4b1b49
mov eax, dword [edi + 4]
dec eax
je 0x4b1b28
dec eax
je 0x4b1afe
dec eax
jne 0x4b1b49
mov esi, 0x428e
jmp 0x4b1b2d
push 0x11
mov esi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4b1b2d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x31c]
test eax, eax
je 0x4b1b2d
add esi, 3
jmp 0x4b1b2d
mov esi, 0x3ea0
push esi
mov ecx, 0x58e194
call fcn.00411d34
test eax, eax
je 0x4b1acb
mov eax, dword [0x58e194]
mov dword [edi + 0xc], eax
xor eax, eax
inc eax
jmp 0x4b1b4b
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4bdbe7
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0x20
push ebx
mov ebx, ecx
jne 0x4bdc38
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
add eax, 0x17
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov ecx, ebx
call fcn.004bd5bb
mov ecx, ebx
call fcn.004bdb5f
push 2
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
jmp 0x4bdc8e
xor eax, eax
cmp dword [ebx + 0x2e4], eax
jne 0x4bdc53
cmp dword [ebp + 0xc], 0x79
je 0x4bdc4e
cmp dword [ebp + 0xc], 0x12
jne 0x4bdc8e
xor eax, eax
inc eax
jmp 0x4bdc8e
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
call esi
movzx edi, ax
shr edi, 0xf
push 0x10
and edi, 1
call esi
mov esi, dword [ebp + 0xc]
shr eax, 0xf
and eax, 1
cmp esi, 0x12
je 0x4bdc93
cmp esi, 0x79
je 0x4bdc93
push 2
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x58dd24], 0
jne 0x4bdc8a
test byte [ebx + 0x2f4], 2
jne 0x4bdc8a
cmp esi, 0x12
je 0x4bdcb7
cmp esi, 0x79
jne 0x4bdc8a
test edi, edi
jne 0x4bdc8a
test eax, eax
jne 0x4bdc8a
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0041d2ae
cmp eax, ebx
jne 0x4bdcda
test dword [ebp + 0x10], 0x40000000
jne 0x4bdcda
cmp esi, 0x79
jne 0x4bdce8
mov ecx, dword [ebp + 8]
jmp 0x4bdce1
cmp esi, 0x79
jne 0x4bdce8
mov ecx, ebx
call fcn.00420987
jmp 0x4bdd03
cmp dword [ebx + 0x2a0], 0
jge 0x4bdd03
push 0
push 0xc8
push 2
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
inc eax
jmp 0x4bdc8c
Function at 0x4c0014
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push 0x74
mov eax, 0x52fb96
call fcn.0050e67c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], eax
call fcn.00411b60
mov esi, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, 0x13
jne 0x4c0042
push 0x54f90c
jmp 0x4c0085
push 0x66
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.0050d860
add esp, 0xc
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
shl eax, 0x10
add esi, 0xffffffdf
or eax, 1
cmp esi, 0xe
ja 0x4c0074
or eax, 0x1000000
push 0x32
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00411df9
lea ecx, [ebp - 0x7c]
call fcn.0042ec3b
mov esi, dword [ebp - 0x7c]
cmp dword [esi - 0xc], edi
jle 0x4c00d6
push edi
lea ecx, [ebp - 0x7c]
call fcn.00447915
movzx ebx, ax
push ebx
call dword [sym.imp.USER32.dll_IsCharLowerW]
test eax, eax
jne 0x4c00bc
inc edi
cmp edi, dword [esi - 0xc]
jl 0x4c009d
jmp 0x4c00d6
movzx eax, bx
push eax
call fcn.00511c74
pop ecx
movzx eax, ax
push eax
push edi
lea ecx, [ebp - 0x7c]
call fcn.00441327
mov esi, dword [ebp - 0x7c]
push dword [esi - 0xc]
mov ecx, dword [ebp - 0x80]
push esi
call fcn.00411d58
cmp dword [ebp + 0x10], 0
jne 0x4c00f2
mov ecx, dword [ebp - 0x80]
push 0x2b
call fcn.00411d17
lea ecx, [esi - 0x10]
call fcn.004017c9
call fcn.0050e6ff
ret 0xc
Function at 0x4c9a0e
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x4c9a58
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4c9a58
call fcn.004c92f6
test eax, eax
je 0x4c9a58
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.0040229d
xor eax, eax
inc eax
jmp 0x4c9c70
cmp dword [ebx + 4], 0x100
push edi
jne 0x4c9c67
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4c9b55
push 0x11
call edi
test ax, ax
jl 0x4c9b55
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4c9b55
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x4c9ac8
cmp eax, 0x20
jbe 0x4c9b55
cmp eax, 0x24
jbe 0x4c9abb
cmp eax, 0x26
je 0x4c9abb
cmp eax, 0x28
jne 0x4c9b55
call fcn.004c92f6
test eax, eax
je 0x4c9b55
mov ecx, esi
call fcn.00420987
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.004c92f6
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x4c9afd
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0040229d
jmp 0x4c9c62
call fcn.0041e920
test eax, eax
je 0x4c9c62
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.0041e958
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4c9b2b
xor edi, edi
jmp 0x4c9b2e
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.0041e920
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4c9c62
mov eax, dword [ebx + 8]
sub eax, 9
je 0x4c9c31
sub eax, 0x12
je 0x4c9c09
sub eax, 0xb
je 0x4c9b77
dec eax
dec eax
jne 0x4c9c67
push 0x12
call edi
test ax, ax
jl 0x4c9c67
push 0x11
call edi
test ax, ax
jl 0x4c9c67
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4c9c67
call fcn.004c92f6
test eax, eax
jne 0x4c9c62
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.004c9270
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0041d2ae
test eax, eax
je 0x4c9c62
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.0041d2ae
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4c9c62
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4c9c1d
push 0
call fcn.004c9270
mov ecx, esi
call fcn.0041e3ee
test eax, eax
je 0x4c9c67
mov ecx, esi
call fcn.0041e3ee
jmp 0x4c9c5b
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0041d2ae
test eax, eax
je 0x4c9c67
push dword [esi + 0x20]
call edi
push eax
call fcn.0041d2ae
push 0
push esi
mov ecx, eax
call fcn.00414384
mov ecx, eax
call fcn.00420987
xor eax, eax
inc eax
jmp 0x4c9c6f
push ebx
mov ecx, esi
call fcn.0041b06c
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4d9172
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4d918a
mov edi, dword [esi + 0xc]
jmp 0x4d91ca
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4d91a3
call fcn.00412f34
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4d91b8
call fcn.00412f34
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4d91ca
call fcn.00412f34
call fcn.00423ffa
cmp dword [eax + 0x3c], 0
je 0x4d91df
push edi
mov ecx, ebx
call fcn.004d804d
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d9098
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4d91fd
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d9209
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4eab97
Capabilities:
Get common file path

Disassembly:
push 0x224
mov eax, 0x531979
call fcn.0050e67c
mov esi, ecx
mov dword [ebp - 0x22c], esi
call fcn.004c2913
push 0x15c
call fcn.004115b7
pop ecx
mov ecx, eax
mov dword [ebp - 0x228], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x4eabdb
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.004fa1ec
jmp 0x4eabdd
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.004c28e5
call fcn.00423ffa
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x88]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x218], ax
inc esi
xor eax, eax
mov dword [ebp - 0x228], esi
mov word [ebp + esi*2 - 0x218], ax
mov dword [ebp - 0x224], ebx
cmp edi, ebx
je 0x4ead7d
cmp dword [edi + 4], ebx
jle 0x4ead7d
lea ecx, [ebp - 0x21c]
call fcn.00411b60
mov edx, dword [edi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x4ead61
lea ecx, [ebp - 0x220]
call fcn.00411b60
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x4eacb2
push dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push str.10__s
push eax
call fcn.00413c08
add esp, 0xc
jmp 0x4eace4
jge 0x4eacd2
push dword [ebp - 0x21c]
inc eax
push eax
lea eax, [ebp - 0x220]
push str._d__s
push eax
call fcn.00413c08
add esp, 0x10
jmp 0x4eace4
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.004129ad
push 0x15c
call fcn.004115b7
pop ecx
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4ead08
mov ecx, eax
call fcn.00459852
mov esi, eax
jmp 0x4ead0a
xor esi, esi
push dword [ebp - 0x220]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebx + 0xe110]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push ebx
mov ecx, edi
call fcn.00426766
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x22c]
push esi
call fcn.004c28e5
mov ecx, dword [ebp - 0x220]
inc dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004017c9
mov esi, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004017c9
inc ebx
cmp ebx, dword [edi + 4]
jl 0x4eac4b
call fcn.0050e6ff
ret
Function at 0x4fc84e
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x52f45c
call fcn.0050e613
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x100
jne 0x4fc927
mov ebx, dword [esi + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x4fc927
cmp ebx, 0x43
je 0x4fc890
cmp ebx, 0x2d
jne 0x4fc927
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4fc927
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00411b60
movzx ecx, byte [edi + 0xae]
and dword [ebp - 4], 0
push ecx
lea eax, [edi + 0xac]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.00413c08
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add esp, 0x14
lea eax, [eax + eax + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.004017c9
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.004ee925
call fcn.0050e6eb
ret 4

Function at 0x5066c6
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp byte [ebp + 0xc], 0
movzx eax, ax
jne 0x50670b
test edi, edi
jl 0x50670b
cmp ax, 0x20
je 0x506700
cmp word [ebp + 8], 0x71
jne 0x50670b
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x50be6b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x588710]
jne 0x50be75
repz ret
jmp fcn.00513a16
Function at 0x5206b8
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.0051337a
and dword [ebp - 4], 0
cmp dword [0x58fe68], 0
mov ebx, eax
jne 0x520769
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x52081a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x52081a
push eax
call fcn.00513308
mov dword [esp], 0x560f78
push edi
mov dword [0x58fe68], eax
call esi
push eax
call fcn.00513308
mov dword [esp], 0x560f64
push edi
mov dword [0x58fe6c], eax
call esi
push eax
call fcn.00513308
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x58fe70], eax
call esi
push eax
call fcn.00513308
pop ecx
mov dword [0x58fe78], eax
test eax, eax
je 0x520769
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00513308
pop ecx
mov dword [0x58fe74], eax
mov eax, dword [0x58fe74]
cmp eax, ebx
je 0x5207c1
cmp dword [0x58fe78], ebx
je 0x5207c1
push eax
call fcn.00513383
push dword [0x58fe78]
mov esi, eax
call fcn.00513383
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5207c1
test edi, edi
je 0x5207c1
call esi
test eax, eax
je 0x5207b8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5207b8
test byte [ebp - 0xc], 1
jne 0x5207c1
or dword [ebp + 0x10], 0x200000
jmp 0x5207fa
mov eax, dword [0x58fe6c]
cmp eax, ebx
je 0x5207fa
push eax
call fcn.00513383
pop ecx
test eax, eax
je 0x5207fa
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5207fa
mov eax, dword [0x58fe70]
cmp eax, ebx
je 0x5207fa
push eax
call fcn.00513383
pop ecx
test eax, eax
je 0x5207fa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x58fe68]
call fcn.00513383
pop ecx
test eax, eax
je 0x52081a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x52081c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40565c
Capabilities:
Encode data using xor

Disassembly:
push eax
mov ebx, edi
sub ebx, 0x401785
mov ah, bl
and ebx, 7
add ebx, 0x401779
add ah, byte [ebx]
xor byte [edi], ah
inc edi
dec cl
jne 0x40565d
pop eax
ret

Function at 0x407032
Capabilities:
Identify system language via api

Disassembly:
push eax
cmp eax, 0
je 0x407130
call sub.KERNEL32.dll_GetUserDefaultLangID
and ax, 0xff
cmp ax, 7
jne 0x407059
nop
nop
nop
nop
mov esi, str.Dinkey_Dongle_Fehler__d_r_n
jmp 0x4070c2
cmp ax, 0xc
jne 0x40706d
nop
nop
nop
nop
mov esi, str.Erreur_Dinkey_Dongle_numero__d_r_n
jmp 0x4070c2
cmp ax, 0x15
jne 0x407081
nop
nop
nop
nop
mov esi, 0x40da71
jmp 0x4070c2
cmp ax, 0x16
jne 0x407095
nop
nop
nop
nop
mov esi, str.Erro_de_protec
jmp 0x4070c2
cmp ax, 0x14
jne 0x4070a9
nop
nop
nop
nop
mov esi, str.Kopi_beskyttelse_feil_nr.__d_r_n
jmp 0x4070c2
cmp ax, 0xa
jne 0x4070bd
nop
nop
nop
nop
mov esi, 0x40dab1
jmp 0x4070c2
mov esi, str.Protection_Dongle_error_number__d_r_n
pop eax
push eax
push eax
push esi
push 0x40b156
call sub.USER32.dll_wsprintfA
add esp, 0xc
cmp dword [0x40d2ca], 0
jne 0x4070ee
nop
nop
nop
nop
cmp word [0x40d2ce], 0
je 0x407130
nop
nop
nop
nop
mov esi, 0x40b156
inc esi
cmp byte [esi], 0xd
jne 0x4070f3
mov eax, 0
mov al, byte [0x40d2cf]
push eax
mov al, byte [0x40d2ce]
push eax
mov al, byte [0x40d2cd]
push eax
mov al, byte [0x40d2cc]
push eax
mov al, byte [0x40d2cb]
push eax
mov al, byte [0x40d2ca]
push eax
push str.__.2x__.2x__.2x__.2x__.2x__.2x_r_n
push esi
call sub.USER32.dll_wsprintfA
add esp, 0x20
pop eax
ret

Function at 0x40779a
Capabilities:
Read .ini file

Disassembly:
push eax
push esi
mov eax, 0x101
push eax
push 0x40b7f1
push 0x40db38
push edi
push ebx
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov edi, 0x40b7f1
cmp word [edi], 0x6968
pop ecx
jne 0x40783d
nop
nop
nop
nop
cmp ecx, 0
je 0x40783a
nop
nop
nop
nop
push esi
mov esi, 0x410940
mov edi, 0x40b9e5
mov ebx, 0
mov ecx, 0x101
lodsb al, byte [esi]
stosb byte es:[edi], al
inc ebx
cmp al, 0
je 0x4077ef
nop
nop
nop
nop
loop 0x4077e2
mov eax, ebx
pop esi
mov edi, 0x40b9e5
add edi, eax
dec edi
cmp byte [edi], 0x5c
jne 0x4077f9
inc edi
movsb byte es:[edi], byte [esi]
cmp byte [esi - 1], 0
jne 0x407800
push 0x40b9e5
push 0x101
push 0x40b7f1
push 0x40db38
push str.DinkeyNetPath
push str.dinkey
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov edi, 0x40b7f1
cmp word [edi], 0x6968
jne 0x40783d
nop
nop
nop
nop
mov al, 0x21
ret
add edi, eax
mov al, 0
ret
Function at 0x407f20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x408f38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x410264], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x410260], ecx
shl ecx, 8
add ecx, edx
mov dword [0x41025c], ecx
shr eax, 0x10
mov dword [0x410258], eax
call fcn.00408e00
test eax, eax
jne 0x407f8a
push 0x1c
call fcn.004080c0
add esp, 4
mov dword [ebp - 4], 0
call fcn.00408c00
call fcn.00408bf0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x410b70], eax
call fcn.004087c0
mov dword [0x410240], eax
test eax, eax
je 0x407fbd
mov eax, dword [0x410b70]
test eax, eax
jne 0x407fc7
push 0xffffffffffffffff
call fcn.00408120
add esp, 4
call fcn.00408510
call fcn.00408420
call fcn.004080f0
mov esi, dword [0x410b70]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4080a6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40800e
test al, al
je 0x40800e
and eax, 0xff
push eax
call fcn.004083c0
add esp, 4
test eax, eax
je 0x407fe8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x407fe8
cmp byte [esi], 0x22
jne 0x408017
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x408027
cmp al, 0x20
ja 0x408027
inc esi
mov dword [ebp - 0x64], esi
jmp 0x408017
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x408048
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40804d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00408120
jmp 0x40808b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x408017
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4080a6

Function at 0x408160
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x410294]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40817f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x410290], 1
mov byte [0x41028c], bl
jne 0x4081d9
mov ecx, dword [0x410b68]
test ecx, ecx
je 0x4081c7
mov esi, dword [0x410b64]
sub esi, 4
cmp esi, ecx
jb 0x4081c7
mov eax, dword [esi]
test eax, eax
je 0x4081c0
call eax
mov ecx, dword [0x410b68]
sub esi, 4
cmp esi, ecx
jae 0x4081b2
push 0x40b014
push 0x40b010
call fcn.00408210
add esp, 8
push 0x40b01c
push 0x40b018
call fcn.00408210
add esp, 8
test ebx, ebx
jne 0x408200
push ebp
mov dword [0x410294], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret