joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c2960
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [ebp + 0x96]
push ebp
lea esi, [edi + 0x16]
cmp eax, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x5c2a73
mov eax, dword [esp + 0x30]
push esi
push eax
push 0
call fcn.005bebd0
add esp, 0x10
test eax, eax
je 0x5c29ad
mov eax, dword [ebp + 0x8e]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf6
pop ebp
add eax, 0x13
pop ebx
pop ecx
ret
lea ecx, [esi + 1]
push ecx
call fcn.005cec99
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5c2b5c
mov eax, dword [esp + 0x18]
mov dword [ebx], 0x6054b50
test byte [ebp + 0xdf1], 0x80
je 0x5c29f9
mov dx, word [ebp + 0xdf2]
mov word [ebx + 4], dx
mov cx, word [ebp + 0xdf4]
mov word [ebx + 6], cx
mov dx, word [ebp + 0xdfa]
mov word [ebx + 8], dx
jmp 0x5c2a06
lea ecx, [ebx + 4]
mov dword [ecx], 0
mov word [ebx + 8], ax
mov edx, dword [esp + 0x1c]
mov word [ebx + 0xa], ax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xc], edx
test edi, edi
mov dword [ebx + 0x10], eax
mov word [ebx + 0x14], di
je 0x5c2a3b
mov esi, dword [esp + 0x28]
mov ecx, edi
mov edx, ecx
lea edi, [ebx + 0x16]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x24]
push 0
push eax
mov edx, dword [ecx]
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c2a5f
cmp dword [esp + 0x24], esi
je 0x5c2b4b
push ebx
call fcn.005cebb0
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call fcn.005bf360
add esp, 4
cmp eax, esi
jge 0x5c2a95
mov eax, dword [esp + 0x2c]
push ebp
push eax
call fcn.005bf3a0
add esp, 8
test eax, eax
jne 0x5c2b61
lea ecx, [esi + 1]
push ecx
call fcn.005cec99
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5c2b5c
mov eax, dword [esp + 0x18]
mov dword [ebx], 0x6054b50
test byte [ebp + 0xdf1], 0x80
je 0x5c2ae1
mov dx, word [ebp + 0xdf2]
mov word [ebx + 4], dx
mov cx, word [ebp + 0xdf4]
mov word [ebx + 6], cx
mov dx, word [ebp + 0xdfa]
mov word [ebx + 8], dx
jmp 0x5c2aee
lea ecx, [ebx + 4]
mov dword [ecx], 0
mov word [ebx + 8], ax
mov edx, dword [esp + 0x1c]
mov word [ebx + 0xa], ax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xc], edx
test edi, edi
mov dword [ebx + 0x10], eax
mov word [ebx + 0x14], di
je 0x5c2b23
mov esi, dword [esp + 0x28]
mov ecx, edi
mov edx, ecx
lea edi, [ebx + 0x16]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x96]
lea eax, [esp + 0x24]
push 0
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c2a5f
cmp dword [esp + 0x24], esi
jne 0x5c2a5f
push ebx
call fcn.005cebb0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5c2b90
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
mov dword [esp + 0x10], 0
mov esi, dword [edi + 0xdbc]
test esi, esi
je 0x5c2d4c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp word [esi + 0x4a], 0
jne 0x5c2bd1
cmp word [esi + 0x4c], 0
je 0x5c2c4b
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x46]
mov word [esi + 0x4a], 1
cmp byte [eax + ecx - 1], 0x2f
je 0x5c2c47
mov edx, dword [esi + 0x36]
lea eax, [esp + 0x14]
push edx
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
call fcn.005ba180
add esp, 4
lea edx, [esp + 0x14]
push edx
call ebp
mov eax, dword [edi + 0xd9c]
test eax, eax
jne 0x5c2c4b
mov eax, dword [esi + 0x36]
push eax
call fcn.005c2b70
mov ecx, dword [esi + 0x46]
push ecx
call fcn.005c2b70
mov eax, dword [esi + 0x46]
add esp, 8
cmp byte [eax], 0
je 0x5c2c36
push 0x673d20
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [esi + 0x46]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
mov dword [esi + 0x18], eax
jbe 0x5c2c4b
inc dword [esp + 0x10]
mov esi, dword [esi + 0x4e]
test esi, esi
jne 0x5c2bc3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5c2d4c
shl eax, 2
push eax
call fcn.005cec99
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x5c2c88
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x108
ret
mov esi, dword [edi + 0xdbc]
xor ebx, ebx
test esi, esi
je 0x5c2cd1
mov edi, ebp
cmp word [esi + 0x4a], 0
je 0x5c2cca
mov ecx, dword [esi + 0x18]
test ecx, ecx
jbe 0x5c2cca
mov eax, dword [esi + 0x46]
cmp byte [ecx + eax - 1], 0x2f
jne 0x5c2cca
test ebx, ebx
je 0x5c2cc4
mov ecx, dword [edi - 4]
mov edx, dword [ecx + 0x46]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x5c2cca
mov dword [edi], esi
inc ebx
add edi, 4
mov esi, dword [esi + 0x4e]
test esi, esi
jne 0x5c2c96
push 0x5c0810
push 4
push ebx
push ebp
call fcn.005d1e03
add esp, 0x10
xor ebp, ebp
test ebx, ebx
jbe 0x5c2d3f
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
mov esi, dword [eax + 0x36]
cmp byte [esi], 0
je 0x5c2d37
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x2f
jne 0x5c2d10
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax + esi - 1], 0
test ebp, ebp
je 0x5c2d2b
mov ecx, dword [edi - 4]
mov eax, dword [edi]
mov edx, dword [ecx + 0x46]
mov ecx, dword [eax + 0x46]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x5c2d37
mov edx, dword [edi]
mov eax, dword [edx + 0x36]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
inc ebp
add edi, 4
cmp ebp, ebx
jb 0x5c2cec
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005cebb0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
Function at 0x5c2d80
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
mov edx, dword [ecx + 0x3e]
mov eax, edx
xor eax, esi
and eax, 0xff
shr edx, 8
mov eax, dword [eax*4 + 0x69b5a8]
xor eax, edx
mov edx, dword [ecx + 0x42]
mov dword [ecx + 0x3e], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 0x46]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 0x42], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x69b5a8]
xor eax, edx
mov dword [ecx + 0x46], eax
ret
Function at 0x5c38f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
cmp eax, 1
push edi
mov ebx, eax
jge 0x5c3904
mov ebx, 1
cmp eax, 9
jle 0x5c390e
mov ebx, 9
mov esi, dword [esp + 0x1c]
xor ebp, ebp
mov eax, dword [esi + 0x56]
mov dword [esi + 0x5e], ebp
cmp eax, ebp
jne 0x5c392c
mov dword [esi + 0x5e], 1
mov dword [esi + 0x56], 0x10000
cmp dword [esi + 0x4a], ebp
jne 0x5c3961
push 2
push 0x8000
call fcn.005d37b5
add esp, 8
cmp eax, ebp
mov dword [esi + 0x4a], eax
jne 0x5c3961
push esi
push ebp
push 0x17c
call fcn.005bf5c0
add esp, 8
push eax
push 4
call fcn.005bac70
add esp, 0xc
cmp dword [esi + 0x4e], ebp
jne 0x5c39ac
push 2
push 0x8000
call fcn.005d37b5
push 2
push 0x4000
mov dword [esi + 0x4e], eax
call fcn.005d37b5
mov ecx, dword [esi + 0x4e]
add esp, 0x10
cmp ecx, ebp
mov dword [esi + 0x52], eax
je 0x5c3992
cmp eax, ebp
jne 0x5c39ac
push esi
push ebp
push 0x186
call fcn.005bf5c0
add esp, 8
push eax
push 4
call fcn.005bac70
add esp, 0xc
mov eax, dword [esi + 0x52]
mov ecx, 0x1fff
xor edx, edx
mov word [eax + 0x7ffe], bp
mov edi, dword [esi + 0x52]
xor eax, eax
rep stosd dword es:[edi], eax
xor ecx, ecx
stosw word es:[edi], ax
mov cx, word [ebx*8 + 0x69b302]
xor eax, eax
mov dword [esi + 0x7e], ecx
mov dx, word [ebx*8 + 0x69b300]
mov dword [esi + 0x82], edx
mov ax, word [ebx*8 + 0x69b304]
xor ecx, ecx
mov dword [esi + 0x86], eax
mov cx, word [ebx*8 + 0x69b306]
cmp ebx, 1
mov dword [esi + 0x7a], ecx
jne 0x5c3a0c
mov eax, dword [esp + 0x18]
or byte [eax], 4
jmp 0x5c3a18
cmp ebx, 9
jne 0x5c3a18
mov eax, dword [esp + 0x18]
or byte [eax], 2
mov edx, dword [esi + 0x4a]
push esi
push 0x8000
push edx
mov dword [esi + 0x6a], ebp
mov dword [esi + 0x5a], ebp
call dword [esi + 0x3f3a]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x76], eax
jne 0x5c3a47
mov dword [esi + 0x72], 1
mov dword [esi + 0x76], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, 0x106
mov dword [esi + 0x72], ebp
cmp eax, edi
jae 0x5c3a68
cmp dword [esi + 0x72], ebp
jne 0x5c3a68
push esi
call fcn.005c3c40
mov eax, dword [esi + 0x76]
add esp, 4
cmp eax, edi
jb 0x5c3a53
mov ecx, dword [esi + 0x4a]
mov dword [esi + 0x62], ebp
xor eax, eax
mov edi, dword [esi + 0x62]
xor edx, edx
mov dl, byte [ecx + eax]
and edi, 0x1ff
and edx, 0x3fff
shl edi, 5
xor edx, edi
inc eax
cmp eax, 2
mov dword [esi + 0x62], edx
jb 0x5c3a70
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5cedd3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5cedf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005d4047
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5cee16
test byte [esp + 8], 2
je 0x5cee16
call fcn.005d40ba
mov dword [eax], 0xd
call fcn.005d40c3
mov dword [eax], 5
jmp 0x5cedef
xor eax, eax
ret
Function at 0x5e6c80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.005cfb80
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x5e6d4b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x5e6d4b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x5e6cfe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x5e6d09
or bh, 8
and edi, 0x8000000
je 0x5e6d24
mov eax, dword [0x6f00bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x5e6d4b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5e7120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x5e714b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x5e716f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x5e718a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x5ecf1d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5ecf55
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005ebe88
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005ebe60
jmp 0x5ecf61
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x5ee8fa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5ee93c
call fcn.005fc162
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5ee93c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5ee933
xor eax, eax
jmp 0x5ee944
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005ee94a
pop edi
pop esi
pop ebx
ret 4

Function at 0x5f0b36
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x5f0b58
cmp dword [edi + 0x3c], 0
jne 0x5f0b58
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.005fc162
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.005f0b85
pop edi
pop esi
pop ebx
ret 8
Function at 0x5f173b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x5f176b
push edi
call ebx
push eax
call fcn.005efa74
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x5f1795
test byte [ebp - 4], 1
je 0x5f1795
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x5f1795
push edi
call ebx
push eax
call fcn.005efa74
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x5f183b
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.005f1688
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x5f17c7
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.005f1688
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x5f17dd
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.005f1688
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5f1807
push 0
call ebx
push eax
call fcn.005efa74
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x5f1825
push eax
call ebx
push eax
call fcn.005efa74
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x5f1839
push eax
call ebx
push eax
call fcn.005efa74
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x5f1862
test byte [ebp - 4], 1
jne 0x5f1862
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x5f1862
push edi
call ebx
push eax
call fcn.005efa74
pop edi
pop ebx
leave
ret 8
Function at 0x5fab9b
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x619e0b
call fcn.005d261c
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.005f1e1d
mov eax, dword [0x69cfe8]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x6dc9c0
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.005faa1f
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.005ebb6a
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.005c7207
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.005ebb1a
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.005eb9e1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x5fcc08
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5fcc36
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5fcc54
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005fcb6e
jmp 0x5fcc54
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5fcc54
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005fcb6e
test edi, edi
mov eax, edi
jne 0x5fcc3e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x6001b4
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x6001dc
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x6001ed
push 2
call edi
test ax, ax
jge 0x6001ed
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.005ec50b
cmp dword [esi + 0x30], ebx
jne 0x6002c7
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.005ec50b
cmp eax, dword [esp + 0x34]
jne 0x6002c7
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x600263
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x6002a8
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x6002c7
cmp eax, 0x205
je 0x6002c7
cmp eax, 0x201
je 0x6002c7
cmp eax, 0x204
je 0x6002c7
cmp eax, ebx
jne 0x60028e
cmp dword [esp + 0x1c], 0x1b
je 0x6002c7
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x6dca3c]
jbe 0x6002bd
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x600220
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x403060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403079
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4030b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4030b0
lea ebx, [ebx]
cmp esi, eax
jae 0x4030b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4030a0
cmp esi, eax
jb 0x4030ba
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40fbe1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431c44]
jne 0x40fbeb
repz ret
jmp fcn.00414c8c

Function at 0x41c257
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.00414676
and dword [ebp - 4], 0
cmp dword [0x435ce8], 0
mov ebx, eax
jne 0x41c308
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41c3b9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42b228
push edi
call esi
test eax, eax
je 0x41c3b9
push eax
call fcn.00414604
mov dword [esp], 0x42b218
push edi
mov dword [0x435ce8], eax
call esi
push eax
call fcn.00414604
mov dword [esp], 0x42b204
push edi
mov dword [0x435cec], eax
call esi
push eax
call fcn.00414604
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x435cf0], eax
call esi
push eax
call fcn.00414604
pop ecx
mov dword [0x435cf8], eax
test eax, eax
je 0x41c308
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414604
pop ecx
mov dword [0x435cf4], eax
mov eax, dword [0x435cf4]
cmp eax, ebx
je 0x41c360
cmp dword [0x435cf8], ebx
je 0x41c360
push eax
call fcn.0041467f
push dword [0x435cf8]
mov esi, eax
call fcn.0041467f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41c360
test edi, edi
je 0x41c360
call esi
test eax, eax
je 0x41c357
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41c357
test byte [ebp - 0xc], 1
jne 0x41c360
or dword [ebp + 0x10], 0x200000
jmp 0x41c399
mov eax, dword [0x435cec]
cmp eax, ebx
je 0x41c399
push eax
call fcn.0041467f
pop ecx
test eax, eax
je 0x41c399
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41c399
mov eax, dword [0x435cf0]
cmp eax, ebx
je 0x41c399
push eax
call fcn.0041467f
pop ecx
test eax, eax
je 0x41c399
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x435ce8]
call fcn.0041467f
pop ecx
test eax, eax
je 0x41c3b9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41c3bb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret